ID:1536715
 
(See the best response by Eternal_Memories.)
Code:
Del()
if(src.mob)
if(/mob/Player/verb/Return in src.mob.verbs)
var/mob/Player/P = src.mob
if(P.client){P.Return()}
src.mob.SaveX()
world << "<font color = yellow><b>Game Info: <font color = red>[usr.name]([src.key])</font><font color = yellow><b> has logged off!"
del(src.mob)
return


Problem description:
Still haven't figured out how to fix this run-time error... debug help, appreciated.

runtime error: Cannot read null.name
proc name: Del (/client/Del)
Best response
Try changing this

world << "<font color = yellow><b>Game Info: <font color = red>[usr.name]([src.key])</font><font color = yellow><b> has logged off!"


to this

world << "<font color = yellow><b>Game Info: <font color = red>[src.mob.name]([src.key])</font><font color = yellow><b> has logged off!"


Or just this

Del()
if(mob)
if(/mob/Player/verb/Return in mob.verbs)
var/mob/Player/P = mob
if(P.client){P.Return()}
mob.SaveX()
world << "<font color = yellow><b>Game Info: <font color = red>[mob.name]([key])</font><font color = yellow><b> has logged off!"
del(mob)
return