ID:263774
 
Code:
//Turf that players click on to load their file
LoadChar()
if(fexists("players/[usr.client.key].sav")) usr.client.Load()
else alert("No Saved File Found!")

//Load proc
client/proc/Load()
var/savefile/load
var/vrb[0]
load = new ("players/[mob.client.key].sav")
load["mob"] >> src.mob
load["x"] >> src.mob.x
load["y"] >> src.mob.y
load["z"] >> src.mob.z
load["Verbs"]>>vrb
for(var/T in vrb) src.mob.verbs+=text2path(T)
spawn(1) mob.LoginStuff()


Problem description:
When a player goes to load their character on my game, it sometimes has a glitch and instead of loading their save file, it simply loads their key.
i.e. if successful it says "CharacterName/PlayersKey has logged in". When bugged it says: "PlayersKey/PlayersKey has logged in" and the save file is overwritten as well as the players screen not progressig past that screen (area on map)
I cant work out the problem's cause... :S

*Bump*


...Oh and for the record, the problem isnt in the Save proc, as it works fine most of the time... just sometimes it decides your save file is blank... :\