ID:263740
 
Code:
mob/Owner
Character_Wipe(mob/M in world)
set category = "Administration"
switch (input("Are you sure?") in list ("No","Yes","No"))
if("No")
return
if("Yes")
fdel("players/[M.key].sav")
usr << "<b><font color=red>[M]'s character has been deleted."
M << "<b><font color=red><font size=3> Your character has been deleted by [usr]. Please relog if you wish to recreate your character."
del(M.client)
if("No")
return


Problem description:
Undefined Proc


I can't seem to get the game to run because of this error, although i cant seem to giure out how to fix it =/ Please explain in Lamen terms how to fix this, It would be greatly appreciated.
This is how I fixed it:
mob
Owner
proc/Character_Wipe(mob/M in world)
set category = "Administration"
switch (input("Are you sure?") in list ("No","Yes","No"))
if("No")
return
if("Yes")
fdel("players/[M.key].sav")
usr << "<b><font color=red>[M]'s character has been deleted."
M << "<b><font color=red><font size=3> Your character has been deleted by [usr]. Please relog if you wish to recreate your character."
del(M.client)
if("No")
return
In response to Techgamer
The erorr is fixed now, thanks, but now the verb doesnt even pop up in the game.
In response to Myu Miharu
No Problem.
In response to Techgamer
Ugh, i spoke too soon, now when i run the game no verb is there
In response to Myu Miharu
Ah, I thought you wanted a proc >_> my bad.
mob
Owner
verb/Character_Wipe(mob/M in world)
set category = "Administration"
switch (input("Are you sure?") in list ("No","Yes","No"))
if("No")
return
if("Yes")
fdel("players/[M.key].sav")
usr << "<b><font color=red>[M]'s character has been deleted."
M << "<b><font color=red><font size=3> Your character has been deleted by [usr]. Please relog if you wish to recreate your character."
del(M.client)
if("No")
return
In response to Techgamer
XDD Thanks again, this time it was perfect.
In response to Techgamer
i got a question techgamer, why would i proc have a set category = "Administration" you shoulda knew by that, its a dead giveaway.. ^_^ sorry if i was a little mean.
In response to VolksBlade
Procs can be added to the verbs list and used as verbs, so any 'set' stuff is perfectly valid within them.
In response to Nadrew
really? thats something i didnt know and never even thought of trying out.. thanks for the lesson of the day ^_^

[ps: im always open for criticism.]