ID:148268
 
When i use this, i cant even get as far as looking in mob.overlays in client/Del() because it says mob.overlays is un-defined. Can anyone show me why it is undefined, and any other errors i have in my code?

PlayersandMonsters
parent_type = /mob/
Login()
for(var/a in usr.oldoverlays) //Don't set the var to the list, but what's IN the list
usr.overlays += a
..()
realplayer
Login()
return
client/Del()
src << "Removing your overlays"
for(var/Arms/Overlays/a in mob.overlays) //Don't set the var to the list, but what's IN the list
mob.oldoverlays += a
mob.overlays-=mob.overlays
if(istype(mob,/PlayersandMonsters/realplayer))
save()
return
.=..()