I'm having a problem with my saving, when I log out it gives the error:
runtime error: Failed to write variable SaveFile to savefile players.sav. The value being written was players.sav (/savefile).
proc name: Logout (/mob/Logout)
usr: Jinks2k1 (/mob)
src: Jinks2k1 (/mob)
call stack:
Jinks2k1 (/mob): Logout()
Connection closed.
my code is:
Login()
SaveFile.cd = "/"
if(ckey in SaveFile.dir)
SaveFile.cd = ckey
Read(SaveFile)
usr << "Welcome back, [name]!"
world << "[name] has rejoined the world!"
else
usr.CharacterCreation()
usr << "Welcome!"
world << "[usr] has entered the world for the first time!"
..()
Logout()
Write(SaveFile)
usr << "Your character has been saved!"
world << "[name] logs out!"
del(src)
I think it's pretty obvious what I'm trying to do I just don't understand why it would be giving me the error. any help in this matter will be very much appreciated.
ID:178437
May 13 2002, 3:52 pm
|
|
May 13 2002, 4:32 pm
|
|
If nobody knows why this problem exsists could you please just start me out with some saving code that will recall the users last location and stuff. I tried deadron saving libraries but they don't work. If you guys could help out on this that would be awesome.
|
In response to Jinks
|
|
refer to my post under Code problems, i believe it was by Malvar and called Saving...
|