ID:143007
 
Code:
client/proc/SaveMob()
var/firstletter=copytext(src.ckey, 1, 2)
var/savefile/F = new("players/[firstletter]/[src.ckey].sav")
var/char_ckey = cKey(src.mob.name)
F["/[ckey]/[char_ckey]"]<<src.mob


Above is line 26 in DBZ.dm

Problem description:when i run the game this message comes up:World opened on network port 1306.
runtime error: Cannot execute null.Find().
proc name: New (/client/New)
source file: Admin.dm,1282
usr: null
src: Iraqii (/client)
call stack:
Iraqii (/client): New()
Iraqii (/client): New()
Iraqii (/client): New()
Iraqii (/client): New()
runtime error: Cannot read null.name
proc name: SaveMob (/client/proc/SaveMob)
source file: DBZ.dm,26
usr: null
src: Iraqii (/client)
call stack:
Iraqii (/client): SaveMob()
Iraqii (/client): Del()
Iraqii (/client): Del()




the second to last line of the code is line 26
In response to Iraqii
Chances are that the save procedure is being called when the client already left (which makes it null), ex: client/Del() or mob/Logout().
In response to GhostAnime
k thnks anime
In response to Iraqii
No problem, that's like the downside of client-side saving. Maybe you should make a force-save when something important happens, such as passing a quest or leveling up.

It is also a good idea to have safety checks in place:
client/proc//_Whatever_The_Name_Was
if(!src) return // If the client does not exist (is null), nothing happens (stops the procedure from continuing)
......your other stuff here.....