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: nieznalezione
1. triggerowanie i nieznalezione konto
Witam mam taki kodzik:

C:

function kupBaze()
    if 
source==buttonKup then
        local mail 
tostring(guiGetText(editEmail))
        if 
guiCheckBoxGetSelected(checkDuza)==true then
            triggerServerEvent 
"kupbaze"localPlayer"DuzaBaza"mail)
        elseif 
guiCheckBoxGetSelected(checkSrednia)==true then
            triggerServerEvent 
"kupbaze"localPlayer"SredniaBaza"mail)
        elseif 
guiCheckBoxGetSelected(checkMala)==true then
            triggerServerEvent 
"kupbaze"localPlayer"MalaBaza"mail)
        else
        
end
    
else
    
end
end
addEventHandler
("onClientGUIClick",getRootElement(),kupBaze)



S:

function createBase(RodzajBazy,Email)
    
local accgetPlayerAccount(localPlayer)
    
local PP getAccountData(acc,"PP") or 0
    
if RodzajBazy=="DuzaBaza" then
        
if PP>=30 then
            outputChatBox
("Kupiles.."player)
        
        else
        
outputChatBox("Nie stac cie"player)
        
end
    
else
    
end
end
addEvent
"kupbaze"true )
addEventHandler"kupbaze"rootcreateBase )



W debugscript'cie wyskakuje mi b??d z getPlayerAccount bo argument pierwszy to nil... Jaki element musze tam wstawi? aby dzia?a?o? I czy przy argumentach w funkcji te? musze zadeklarowa? nowy element jako gracza? Prosz? o pomoc :/