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: przesylanie
1. triggerServerEvent przesylanie argumentow
Siema, mam takie cos:

addEventHandler
("onClientGUIClick"getRootElement(), 
    function()
        if(
source == GUIEditor.button[2]) then
            triggerServerEvent
("addAccount"resourceRootguiGetText(GUIEditor.edit[1]), guiGetText(GUIEditor.edit[2]))
        
end
end
)


a po serwerze:

addEvent
("addAccount"true)
function 
register(playerusernamepassword)
    
outputChatBox(username..passwordgetRootElement())
    
exports["db_connect"]:query("INSERT INTO Users(UserName, Password, Level) VALUES('"..username.."',"..password..", 0)"false)
end
addEventHandler
("addAccount"resourceRootregister)

I generarlnie to wysy?a sie warto?? UserName, ale Password ju? nie.
attempt to concatenate local 'password' a nil value