ID:145214
 
Code:
mob
Login()
icon = 'player.dmi'
world << "<B><i>[src] has logged into the adventure.</i></B>"
src.loc = locate(11,10,1)
Logout()
world << "[src] has logged out of the adventure."
src.client.Save_Char()
(src.move==1)
del src

mob/var
move = 0

client
proc
Load_Char()
var/savefile/S = new ("Player/[src.mob.ckey]")
S["mob"] >> src.mob
S["x"] >> src.mob.x
S["y"] >> src.mob.y
S["z"] >> src.mob.z
Save_Char()
var/savefile/S = new ("Player/[src.mob.ckey]")
S["mob"] << src.mob
S["x"] << src.mob.x
S["y"] << src.mob.y
S["z"] << src.mob.z

mob/verb
Load_Character()
if(src.move==1)
src.client.Load_Char()
else
src << "We havne't found a file with the name of [usr]."


Problem description: I want it so you log in normally, and when you logout you create a saved file. And i want the verb to load the saved file and if there isn't a saved file, it won't load anything. What's wrong with the code here.

You need to indent your load char proc.