verb
Logins()
set hidden=1
if(!world_loaded||!src) return
if(src&&client)
if(!client)return
var/list/l = params2list(winget(src,"login.Username;login.Password","text"))
if(!client)return
var/name = l["login.Username.text"]
var/pass = l["login.Password.text"]
if(!client)return
if(!fexists("Players/[ckey]/[name].sav"))
alert(src,"No save file found","Invalid")
return
if(!client)return
var/savefile/F = new("Players/[src.ckey]/[name].sav")
var/list/S = new/list()
var/PasswordRight
F["Password"] >> PasswordRight
F["S"] >> S
if(!client)return
if(!name)
alert(src,"Please enter an account ID.","Invalid")
winset(src, "login.Username", "text-color=#000000;background-color=#B81717")
return
if(!pass)
alert(src,"Please enter a password.","Invalid")
winset(src, "login.Password", "text-color=#000000;background-color=#B81717")
return
if(pass!=PasswordRight)
winset(src, "login.Password", "text-color=#000000;background-color=#B81717")
return
else
winset(src, "login.Username", "text-color=#2DB817;background-color=#2DB817")
winset(src, "login.Password", "text-color=#2DB817;background-color=#2DB817")
defaultWindow("main")
src.client.LoadMob(S)
Problem description:
I'm getting bad client as a runtime error. Does anyone know how to fix this?
Put this right below your 'set hidden=1' line and see what these values are.
Also, what line is giving you the error? This one?