ADMIN
verb
Ban(mob/M as null|anything in players)
world << "<center>[M] was banned by [usr.key]!</center>"
banned += M
M.Logout()
Problem description:
I get a runtime error:
runtime error: Cannot execute null.Logout().
proc name: Ban (/ADMIN/verb/Ban)
usr: Hi1 (/mob)
src: Hi1 (/mob)
call stack:
Hi1 (/mob): Ban(null)
Then it says:
was banned by Hi1!
I'm guessing it's trying to ban "null"?
Thanks in advance to any help!
~Hi1
You also shouldn't call Logout() directly. I suggest just deleting them. Or, perhaps more elegantly, their client.