Thread: Arrays....
View Single Post
  #1  
Old 03-05-2002, 06:30 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Arrays....

-=Josey=-
Ok, I know how to use arrays farely well, but, I've ran into a delima.
NPC Code:

if (playerenters){
this.arrayX={x+1,x+2,x+3,x+4,x+5};
this.arrayY={y+1,y+2,y+3,y+4,y+5};
timeout=.05;
}
if (timeout){
if (playerx in this.arrayX&&playery in this.arrayY){
message Testing...;
}
timeout=.05;
}


This doesn't seem to work right for me. Maybe I'm doing it wrong or maybe I done it right in this thread. I'm at work and yet to test it. Thanks for any help.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote