i cant load my player why??
mob
proc
LoadPlayer()
if(fexists("players/[src.key].sav"))
var/savefile/F = new("players/[src.key].sav")
F["mob"] >> usr
F["x"] >> usr.x
F["y"] >> usr.y
F["z"] >> usr.z
F["maxki"] >> usr.Mchakra
F["zenni"] >> usr.Yen
F["health"] >> usr.maxhealth
F["Guild"] >> usr.squad
F["Level"] >> usr.level
F["Mexp"] >> usr.mexp
F["exp"] >> usr.exp
usr.chakra = usr.Mchakra
usr.stamina = 100
usr.health = usr.maxhealth
Read(F)
world<<"<font size=1><font color=yellow><B>Info:<font color = FFCC33> [usr] has logged on the server."
return
else
usr<<"<b>I guess you need to have a character to load it"
return
mob
proc
saveproc()
if(src.cansave)
var/savefile/F = new("players/[usr.key].sav")
F["mob"] << src
F["x"] << src.x
F["y"] << src.y
F["z"] << src.z
F["maxki"] << src.Mchakra
F["zenni"] << src.Yen
F["health"] << src.maxhealth
F["Guild"] << src.squad
F["Level"] << src.level
F["Mexp"] << src.mexp
F["exp"] << src.exp
Write(F)
Problem description:
why?? whats wrong??
Oh and you can't directly load x/y/z in to the variables, you must first set it in to a locally defined variable and then set x/y/z to it.
And it does help knowing what _exactly_ doesn't work.