Here is the error that I get:
admin.dm:20:error:M.key:undefined var
and here is the problematic coding.
Ban(M as mob in world, R as text)
set hidden = 1
set desc = "Select a player and enter a reason."
switch(alert("Are you sure you want to ban [M]?",,"Yes","No"))
if("Yes")
M << "[usr] has opted to ban you for [R]."
world << "[M] has violated [R] and is banned."
banned.Add("[M.key]") // Error here
This goes right under the booting section, and is a mob/verb. I have a global list named "banned", so that doesn't seem to be the problem.
I am trying to make it so that, when an administrator bans someone, it adds it to a global list that will be searched upon login.
At the moment, there is no coding for a negative response.