Jump to content

[duda] que esta mal aqui? - logIn


Sergioks

Recommended Posts

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
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
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 xD

- Salu2 y Gracias :D

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...