runtime error: Cannot execute null.SaveMob().
proc name: Logout (/mob/Logout)
usr: Guest (/mob)
src: Guest (/mob)
call stack:
Guest (/mob): Logout()
whenever I log out. My save code is:
client/proc/SaveMob()
var/savefile/F = new("players.sav")
var/char_ckey = ckey(mob.name)
F["[ckey]/[char_ckey]"] << mob
mob.saved_char = 1
and my login/logout code is:
Login()
..()
if(saved_char)
client.LoadMob()
loc = locate(/area/start)
else
CreateNewChar()
Logout()
client.SaveMob()
..()
Logout()
client.SaveMob()
..()
try using src instead of client
Logout()
src.SaveMob()
..()
or even if u use
client/Del()
src.Savemob
one of them should work