Thread: Arrays....
View Single Post
  #7  
Old 03-05-2002, 09:13 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
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|
yeah, thats right, becuase most of the time playerx's and playery's have a lot of extra decimal numbers
__________________
[signature]insert here[/signature]
Reply With Quote