ID:149930
 
For some reason when i use
if(client.CheckPassport("MyPassportHere"))

it says error:client.CheckPassport:undefined var

Anyone know why?

[Edit]

I figured out why it wont work, because I have it under a Click() proc. That may help you figure out how i could do this.

-Rcet
Rcet wrote:
I figured out why it wont work, because I have it under a Click() proc. That may help you figure out how i could do this.

Click() is one of those few cases where you do need to use the dread usr var. usr is the mob that Click()ed whatever the src is.

You want

if(<font color=#ffff99>usr.</ font>client.CheckPassport("MyPassportHere"))

in the Click() proc.