var/list/GMs = list()
var/list/Banned = list()
mob/pc
Login()
//deletes banned players
if(Banned.Find("[key]"))
src << "You have been banned from this server!!"
del(src)
//gives GMs their powers and whatnot
if(GMs.Find("[key]"))
src << "<font color=green>Welcome, your GM powers have been enabled"
src.verbs += typesof(/mob/GMs/verb)
Problem description:
I'm trying to add a key-based administration and banning system, it works by adding a persons key to the lists declared at the top. Problem is when I log in I get the following run-time error:
runtime error: Cannot execute null.Find().
proc name: Login (/mob/pc/Login)
usr: the pc (/mob/pc)
src: the pc (/mob/pc)
call stack:
the pc (/mob/pc): Login()
Fartmonger (/client): LoadChar()
Fartmonger (/mob/loading): Choose Char()
Fartmonger (/mob/loading): Login()
Is anyone able to tell me what's going on?