ID:157009
 
I have a problem, an admin code I have is getting errors, it keeps saying that M.GM is an undefined type.

if(M.key == "")
M << "<b><font color = red>Abuse Info: [usr] has just tried to boot you!!!"
return
if(M.GM >= usr.GM)
world << "<b><font color = red>Abuse Info: Level [usr.GM] GM [usr] has tried to boot level [M.GM] GM [M]!"
return
if(M != null)
var/R = input("Why are you booting [M:name]?","Boot") as text|null
if(R == "" ||R == null)
world << "<b><font color = red>GM Info: [src] has booted [M]"
else
world << "<b><font color = red>GM Info: [src] has booted [M] ([R])"
del(M.client)
if(M)
del(M)
without knowing how you got their im gussing M is never set
or is set but is null.

In response to ZeroLion
hmm alright thanks for the response
We would have to see the definition of M and of GM.
To rephrase the error in a possibly more readable form, M is not defined as type that would contain a definition of GM.