ID:264353
 
Whenever I put my name in the admin list the game compiles and says its all ok and I didnt typo or anything but when I log onto it it stil doesnt say im admin or give me the verbs. I think the code is right but here it is



mob/Login()
src.loc = locate(9,9,1)
src.client.view=8
if(src.key =="Itaske Uchiha")
src.verbs += typesof(/mob/Owner/verb)
src.verbs += /mob/special/verb/Aura_On
src.verbs += /mob/special/verb/Shuriken
src.verbs += typesof(/mob/GM1/verb)
src.verbs += typesof(/mob/GM2/verb)
src.verbs += typesof(/mob/GM3/verb)
src.verbs += typesof(/mob/GM4/verb)
src.verbs += /mob/Astro/verb/Take_Espada
src.verbs += /mob/Astro/verb/MakeEspada
src.verbs += /mob/troj/verb/Fair_Stats
src.verbs += /mob/troj/verb/Tick_Lag
src.verbs += typesof(/mob/Shadow/verb)
src.verbs += /mob/Arrancar/verb/Bala
src.verbs += /mob/EJ/verb/Announce_Mute
src.verbs += /mob/EJ/verb/Announce_UnMute
src.verbs += /mob/EJ/verb/Make_Espada_Leader
src.verbs += /mob/EJ/verb/Edit
src.GM=5
return
var/list/Admins = list("Your key here")
mob/Login()
if((key in Admins))
//...
return ..()


That's what I use, and it works perfectly fine. You may not've put parentheses around your "key in list" condition.
In response to Spunky_Girl
To be honest im not sure how to use that hah...im not to much of a coder myself someone else coded it in ^^U
In response to Itaske Uchiha
Then you shouldn't be programming at all now should you? Try reading the guide or the reference for some help before attempting to do anything.
In response to Spunky_Girl
The extra parentheses aren't needed in all arbitrary in usages; they're only needed when using certain operators like ! to make the order of operations right. This is because in has a lower priority than !, so the statement is interpreted wrong by the compiler:
if(!Var in List)
//compiled as:
if((!Var) in List)
//executes as:
if((0 or 1) in List)


The OP's problem may be another Login() override that prevents the posted one from executing (by not calling ..()).