ID:140351
 
Code:
mob/Login()
winset(usr, "Main", "is-maximized=true")
if(usr.key in admins)
winset(usr, "admin_menu", "is-disabled=false")
usr.verbs += /ADMIN/verb/
players += usr.key


Problem description:
It enables the menu, but I get an "Unrecognized or Inaccessible verb." error...I don't understand why. Please help! Thanks!

~Hi1
For some reason the winset() freezes the code all together...Is this a bug? Or am I doing something wrong? Thanks!

~Hi1
In response to Hi1
1) You are using usr in mob/Login() which is indirectly called... its a no no :o Use src instead.

2) Do you mean typesof(/Admin/verb)? Otherwise you are trying to insert an incomplete path

3) You did not call the parent procedure ..() which continues from the default procedure
In response to GhostAnime
Thank you very much. I did forget about typesof(). Haha, silly mistake. :P

Thanks for helping me fix this! Kudos! :3