admin
parent_type = /mob
proc
BanKey(keyban/K as text)
var/savefile/F=new("Ban/Bans.hlr")
F["[keyban]"]<<keyban
CheckBan(mob/M as mob)
var/savefile/F=new("Ban/Bans.hlr"),h
F["[banlist]"]>>h
if(banlist.Find(M.key,Start=1,End=0))
M<<"<tt><font color = red>Have a nice day. :)</tt></font>"
del(M)
verb
KeyBan()
set category = "Admin"
keyban = input("Input the key you'd like to ban.","Key Bannination")
BanKey(keyban)
banlist+=keyban
world << "[src] has banned the key, \"[keyban]\"."
var
keyban
var
list
banlist = list()
world
Del()
var/savefile/F=new("Ban/BannedKeys.hlr")
F["BanList"]<<banlist
New()
var/savefile/F=new("Ban/BannedKeys.hlr")
F["BanList"]>>banlist
mob
Login()
..()
if(src.key=="Hell Ramen")
src.verbs += typesof(/admin/verb)
;o
Whenever I use KeyBan...
I get this wonderful error(durring game)
runtime error: undefined proc or verb /mob/BanKey().
proc name: KeyBan (/admin/verb/KeyBan)
usr: Hell Ramen (/mob)
src: Hell Ramen (/mob)
call stack:
Hell Ramen (/mob): KeyBan()
:(
Summary:
I need to know how to tweak this KeyBan code to where I can put in a key and it bans it. ;o
Thank you, for taking your time to read this.
#define DEBUG
somewhere in your code, run it again, and show the new runtime error? The new runtime error should have a filename and a line number. Show us the line and surrounding code, and comment on the line with the error.