ID:264914
 
Code:
mob
verb
Access()
set hidden=1
var/Name=winget(usr,"Login.Name","text") // Once again getting text from the inputs
var/Pass=winget(usr,"Login.Pass","text")
var/Right
var/Can=0
if(!Name)
winset(usr,"Login.Name","background-color='#E16A6A'")
Can=1
if(!Pass)
winset(usr,"Login.Pass","background-color='#E16A6A'")
Can=1
if(!Can)
if(fexists("Clients/[Name].sav")) // Lets check to see if the name entered has a savefile
var/savefile/F = new("Clients/[Name].sav") // if so were gonna load the password
F["Password"] >> Right
if(Pass == Right) // If the password they entered matches load the user
F["User"] >> src.User
F["Password"] >> src.Password
// F["Question"] >> src.Question
// F["Answer"] >> src.Answer
ChangePane("main")
F["Icon2"] >> src.icon
F["overlays2"] >> src.overlays
F[MHealth] >> src.MHealth
F[MRei] >> src.MRei
F[Defense] >> src.Defense
F[Attack] >> src.Attack
F[Race] >> src.Race
F[Shikai] >> src.Shikai
else // if it dont match start them over
winset(usr,"Login.Pass","background-color='#E16A6A'")
winset(usr,"Login.Pass","text=''")

return
else // if savefiles dont exist start them over
winset(usr,"Login.Name","background-color='#E16A6A'")
winset(usr,"Login.Name","text=''")
winset(usr,"Login.Pass","background-color='#E16A6A'")
winset(usr,"Login.Pass","text=''")


Problem description:

i get

runtime error: bad input src
proc name: Access (/mob/verb/Access)
usr: Distant Star Corporation (/mob)
src: Distant Star Corporation (/mob)
call stack:
Distant Star Corporation (/mob): Access()



and it don't load the stats of the user after he/she type in his user/password to load


In response to Garthor
thank you all i couldn't find my old one even with the search why i re posted it.