Teqskater Posted May 16, 2008 Share Posted May 16, 2008 when i use: logIn(client, username, tostring(password)) it says: WARNING: gamemode.lua: Bad argument @ 'logIn' - Line: 9 can sombody help me with this. I am very sure that the variables username and password are filled with a username and password. what do i do wrong. Im new here and i've done all the tutorials on the wiki and read everything i needed to read. im not new to LUA. i just don't know how to debug this completely. Thanks in advance! EDIT: Problem solved. i needed to use it like this: local account = getAccount(username, password) if account ~= false then logIn(client, account, password) end Link to comment
Teqskater Posted May 16, 2008 Author Share Posted May 16, 2008 when i use: logIn(client, username, tostring(password)) it says: WARNING: gamemode.lua: Bad argument @ 'logIn' - Line: 9 can sombody help me with this. I am very sure that the variables username and password are filled with a username and password. what do i do wrong. Im new here and i've done all the tutorials on the wiki and read everything i needed to read. im not new to LUA. i just don't know how to debug this completely. Thanks in advance! EDIT: Problem solved. i needed to use it like this: local account = getAccount(username, password)if account ~= false then logIn(client, account, password)end Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now