Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: raporty
1. raporty
Siema, robie liste raportow w gui i chce zrobic tak, ze jak ilosc raportow przekracza 25 to raporty przenosza sie na nastepne strony. Nie wiem jak sie za to zabrac, macie jakis pomysl?
2. Raporty
Witam , otoz mam taki problem jak wchodze na duty to nie wyskakuje mi napis Lista Raportow i jak np wysle raport na siebie to tez nie pokazuje mojego raporta i komenda cl tez nie dzia?a[b] B?EDOW W DB3 NIE MA[/b]

Prosze o pomoc za pomoc :piwo: + R*

[lua]
function jestRCONem(gracz)
if getElementData(gracz, "adminduty") == 3 then return true end
end


function jestADMINem(gracz)
if getElementData(gracz, "amodduty") == 2 then return true end
end


function jestModem(gracz)
if getElementData(gracz, "samodduty") == 1 then return true end
end


function adm (source)
local accountName=getAccountName(getPlayerAccount(source))
if isObjectInACLGroup("user."..accountName, aclGetGroup("Admin")) then
if getElementData(source, "adminduty", true) then
setElementData(source, "adminduty", false)
takeAllWeapons(source)
outputChatBox("Zwolni?e? si? z rangi administratora RCON", source, 255, 0, 0)
removeElementData(source,"Praca")
triggerClientEvent("okno:dutyoff",source,source)
takeWeapon ( source, 22 )
else
outputChatBox("Zalogowa?e? si? jako Administrator RCON :) ", source, 255, 0, 0)
local nazwa = "Administrator RCON"
local r,g,b = 220, 0, 0
setElementData(source,"Praca",nazwa)
setElementData(source,"Praca:r",r)
setElementData(source,"Praca:g&quo...
3. raporty
Mam taki problem iz nie pokazuje mi nawet napisu Lista raport?w i nie wiem dlaczego mi to nie dzia?a dlatego prosze o pomoc.
[b]Kod po stronie(Clienta)[/b]
[lua]

local xtext=nil
local gameView={" "}
local reportView={"Lista raport?w:"}
local sx,sy=guiGetScreenSize()

addEventHandler("onClientRender", root, function()
if getElementData(localPlayer, "adminduty") == 1 or getElementData(localPlayer, "amodduty") == 2 or getElementData(localPlayer, "samodduty") == 3 then
concat=table.concat(gameView, "n")
dxDrawText(concat, sx*(10+1)/1024, sy*(279+1)/768, sx*(326+1)/1024, sy*(497+1)/768, tocolor(0, 0, 0, 255), 1.00, "default", "left", "top", false, true)
dxDrawText(concat, sx*(10)/1024, sy*(279)/768, sx*(326)/1024, sy*(497)/768, white, 1.00, "default", "left", "top", false, true)
end
end)


function renderingInfo()
--dxDrawRectangle(sx*(258)/1024, sy*(0)/768, sx*(500)/1024, sy*(23)/768, tocolor(0, 0, 0, 155), false)
dxDrawRectangle(sx*(843)/1280, sy*(536)/600, sx*(427)/1280, sy*(28)/600, tocolor(0, 0, 0, 155), false)
--dxDrawText(xtext, sx*(258+1)/1024, sy*(0+1)/768, sx*(758+1)/1024, sy*(23+1)/768, tocolor(0, 0, 0, 255), 1.00, "default", "center", "center", false, true)
--dxDrawText(xtext, sx*(258)/1024, sy*(0)/768, sx*(758)/1024, sy*(23)/768, tocolor(255, 0, 0, 255), 1.00, "defaul...