Sergioks Posted June 15, 2014 Share Posted June 15, 2014 Buenas Quisiera saber que problema tiene este script. Server-Side: addEvent("Login", true) addEventHandler("Login", root, function(Username, Password) local account = getAccount ( Username, Password ) if ( account ~= false ) then logIn ( source, account, password ) else triggerClientEvent(source, "ErrorLogin", source) end end) Debugscript 3: WARNING: Login\server.lua:19: Bad argument @ 'logIn' [Expected string at argument 3, got nil] ¿que sucede? Link to comment
Tomas Posted June 15, 2014 Share Posted June 15, 2014 addEvent("Login", true) addEventHandler("Login", root, function(Username, Password) local account = getAccount ( Username, Password ) if ( account ~= false ) then logIn ( source, account, Password) else triggerClientEvent(source, "ErrorLogin", source) end end) Las mayúsculas en LUA son muy importantes respetarlas. Link to comment
Sergioks Posted June 15, 2014 Author Share Posted June 15, 2014 addEvent("Login", true) addEventHandler("Login", root, function(Username, Password) local account = getAccount ( Username, Password ) if ( account ~= false ) then logIn ( source, account, Password) else triggerClientEvent(source, "ErrorLogin", source) end end) Las mayúsculas en LUA son muy importantes respetarlas. ah lol no me di cuenta, no se que pasa con migo - Salu2 y Gracias Link to comment
Recommended Posts