mob
proc
save()
var/savefile/F = new("players/[src.key].sav")
Write(F)
F["last_x"] << x
F["last_y"] << y
F["last_z"] << z
src<<"<B>Info: <font color=silver>Game saved"
return
mob
proc
loadchar()
if(fexists("players/[src.key]/.sav"))
var/savefile/F = new("players/[src.key]/.sav")
var/last_x
var/last_y
var/last_z
Read(F)
F["last_x"] >> x
F["last_y"] >> y
F["last_z"] >> z
src<<"<B>World Info: <font color=silver>[src] ([src.key]) is logging in"
var/location = locate(last_x,last_y,last_z)
return
mob
proc
autosave()
src.save()
spawn(600)
src.autosave()
the error points to
var/location = locate(last_x,last_y,last_z) // saying warning: variable defined but not used...