ID:143760
 
Code:
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...



I have noticed, that you don't end your tags. Your tags can get in the way or possibly mess up other tags (and, yes I am talking about HTML tags). Just, letting you know. :P
In response to Quest Industries
....I know that but its not like im using other tags in there am I?
In response to Rassafrass
Yeah, you are.

<*font color=silver>
<*b>

Plus, its better to be SAFE then to regret it later on.
In response to Quest Industries
Thats not my point.


Does that really matter???

I can always go back and fix it! Right now I'm stuck with a save/load system and all you're doing is pointing out the most retarded html crap...
Rassafrass wrote:
the error points to
var/location = locate(last_x,last_y,last_z) // saying warning: variable defined but not used...
>


You want to set the mob's loc variable to a proper location, not define a new variable called location. Change that line to:
src.loc=loate(x,y,z)


Also, your three var/last_x, var/last_y, var/last_z lines are not necessary. the x, y, and z built-in vars do all you need. Also explained this (kinda) on the similar topic in Dev How-To.