mob/Login()
..()
if((key in admin))verbs+=typesof(/mob/admin/verb)
src<<info
var/list/admin=list("DivineO'peanut")
Problem description: I don't recieve any admin verbs when I login.
I probably forgot somthing...
ID:262996
Mar 15 2006, 3:57 am
|
|
Code:
mob/Login() Problem description: I don't recieve any admin verbs when I login. I probably forgot somthing... |
Mar 15 2006, 4:02 am
|
|
In response to A.T.H.K
|
|
It works in both ways.
Login() Automatically directs my "key" to "src.key" |
In response to DivineO'peanut
|
|
Hmm so it does.. its late here
how about your admin verbs anything wrong with the
mob/admin/verb
|
In response to A.T.H.K
|
|
mob/admin/verb/Boot(mob/M in op) This is one of my admin verbs. |
In response to DivineO'peanut
|
|
That happens to me all the time, really. You've got if(()) , try doing just if(). If that doesn't work, just use if(key=="DivineO'Peanut"), seeing as it'll save the verbs after. Meh, works for me.
|
In response to Mysame
|
|
Not workeh.
And I'd rather not use if(key==...) as this will diminish the impact of my admin system... EDIT: Code fixed, the problem was that I overide my Login() code with a few others. (Thanks Artemio) |
In response to DivineO'peanut
|
|
Use the Find() proc for a list.
|
In response to Dark Weasel
|
|
You don't need to, Find() is for finding the position of the target in the list aswell, and if you don't need to do that, it's okay to use in.
|