ID:169580
 
mob Write() var/savefile/F = new ("[usr.fname].sav") ..() F["fname"] << usr.fname F["fsex"] << usr.fsex F["fage"] << usr.fage F["posts"] << usr.posts F["rank"] << usr.rank F["password"] << usr.password return Read() label1 var/name=input("Enter your name.","","Submit","Cancel")as text if("Cancel")return var/savefile/F = new ("[name].sav") label2 var/pass=input("Enter your password.","","Submit","Cancel")as text if("Submit") if(pass!=usr.password) alert("Invalid Password") goto label2 if("Cancel")goto label1 F["fname"] >> usr.fname F["fsex"] >> usr.fsex F["fage"] >> usr.fage F["posts"] >> usr.posts F["rank"] >> usr.rank F["password"] >> usr.password return

When I call this code in a verb (Calling Write() in a verb) it says
runtime error: bad file proc name: Write (/mob/Write) usr: the ee (/mob) src: the ee (/mob) call stack: the ee (/mob): Write() the ee (/mob): register()

Anyone know what to do?</<></<></<></<></ <></<>
_> bump
In response to FireEmblem
bump again..>_<
First, when you have problemes, compile with debug on, so it will say what line is having problemes.

I think its because you might be trying to Read() before you Write() and the file doesnt exist

Also your mixing alert and input, I dont think it works that way.
> var/name=input("Enter your name.","","Submit","Cancel")as text
> if("Cancel")return

Look up input() and alert() in the reference. I know for a fact that your if will ALLWAYS be false because "Cancel" has a numerical value of 0, there is no comparassion (=,>,<,etc)
In response to FranquiBoy
I can't seem to get a text box in the alert, though.
In response to FireEmblem
Its not possible, and trying to mix them wont work. What I do is if the text inputed is null (blank), take that as a Cancel.