ID:264905
 
Code:
mob 
proc
Save() // Save character proc
var/FI=copytext(ckey,1,2)
var/savefile/F=new("Players/[FI]/[ckey][Slot].sav")
F["Gold"] << src.Gold
F["Name"] << src.Name
F["Icon"] << usr.icon
F["Slot"] << src.Slot
F["last_x"] << src.x
F["last_y"] << src.y
F["last_z"] << src.z

Load(S as num) // Load character
var/FI=copytext(ckey,1,2)
if(fexists("Players/[FI]/[ckey][S].sav"))
var/savefile/F=new("Players/[FI]/[ckey][S].sav")
var/last_x
var/last_y
var/last_z
F["Gold"] >> src.Gold
F["Name"] >> src.Name
F["Icon"] >> src.icon
F["Slot"] >> src.Slot
F["last_x"] >> last_x
F["last_y"] >> last_y
F["last_z"] >> last_z
src.loc=locate(last_x, last_y, last_z)


Problem description:
My saving system seems to save and load everything except my users icon. Where am I messing up that is not allowing the icon to be loaded?

Because you are using usr in a proc.
In response to Garthor
Fixed that last night, however my icon is still not loaded.
In response to National Guardsmen
What I always do in my Saving proc is:

F["mob"] << src


If you do this, all variables linked with src, will be saved. Saving you a lot of time, instead of writing every var.

And it saves icon as well, do the same in load proc. And I hope it will work.
Have you tried uncapitalizing icon in this?

F["Icon"] << src.icon

to

F["icon"] << src.icon
In response to LordAndrew
Tried that also and it didn't give me any different results. Im really confused as to why its not loading my icon.