Thread: Arrays....
View Single Post
  #8  
Old 03-05-2002, 11:11 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


Not a command!
Yeah, a condition, I think its a common scripter habbit to call everything a command...

Quote:
Originally posted by Stefan
I think all here were wrong

If you do playerx in this.arrayX then it checks if playerx
is in the array (the exact value of playerx, so its only
true if its equal to one of the 5 entries of the array).
To check for a range do
playerx in |x+1,x+5|
you could also do:
NPC Code:

int(playerx) in |this.arrayX|


right?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote