Code: if(locate(src.key) in Staff)
switch(alert("Is this a GM character?","GM char?","GM","Mortal"))
if("GM")
char.OM = 1
Problem description:i have a code in my game that checks the key of a person that is loging in to see if they are on the list that are designated gms, yet the notice that i have built in doesnt show up and the gms arent classified as gms nor do they have their abilities.
ID:144806
![]() Aug 22 2006, 10:38 am
|
|
![]() Aug 22 2006, 10:48 am (Edited on Aug 23 2006, 10:37 am)
|
|
Remove the locate(), and if it's in a proc(oops, edit), change Usr in the alert() to src.
|
DivineO'peanut wrote:
Remove the locate(), and if it's in Login() or client/New(), change Usr in the alert() to src. It's not. And also the reason I found is that the 'Staff' list became null for some reason. I need to go back and find out why. |