Jump to content

logIn() won't work? ideas why? [SOLVED]


Recommended Posts

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! :D

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

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! :D

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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