ID:263874
 
Code:
see this is suppose to be my log out code but for sum reason when u logout it dont says u logged out or save ur game
client
Del()
if(src.banned)
return..()
if(!src.mob)
return..()
else
if(!src.banned)
world << "<b><font color = yellow>Info:<font color = silver>([src]) has logged off!"
src.SaveZ()
del(mob)
return..()


Problem description:

y this dont work? T.T
Im not sure if you want client delete, what might work better is mob logout:
mob
Logout()

I dont know if you wanted client delete for any specific reason but logout should work.
In response to Lt. Pain
hmmm i tried it but then it bugs my load proc saying the load is messing up the load soo i tried another thing
In response to Lt. Pain
mob/Logout() is an entirely different proc and not correct for this situation. client/Del() is correct.

As for the problem: remove the third if statement (if(!src.banned)), because it's redundant. However, more important: make sure that banned isn't set to true. More likely, however, I think you are deleting your mob when a player logs out (perhaps even in mob/Logout()), which is likely to be causing your problem.
In response to Garthor
client/Del()
if(src.banned)
return..()
if(!src.mob)
return..()
else
world << "<font color = yellow>Info:<font color = silver>([src]) has logged off!"
src.mob.SaveZ()
del(src)
return..()


is it good now?
nvm guys i fixed it by ma self