proc
saveplayer()
var/savefile/s=new/savefile("usrs/[src.ckey]")
s[src.name]<<src
s["[src.name]/locx"]<<x
s["[src.name]/locy"]<<y
s["[src.name]/locz"]<<z
Logout()
curparty.removeMember(src)
coolpassed=1
saveplayer()
Problem description:
This code is all located in /mob/player but when I close the game, it saves incorrect info to the savefile. The savefile dump looks like:
neoskye = object(".0")
.0
type = /mob
name = "Neo Skye"
gender = "male"
key = "Neo Skye"
I'm kind of guessing that my mob is being deleted before I get to the saving, but I'm not really sure.
Also, if I call saveplayer() from a verb, it saves just fine.
Any help is greatly appreciated :)