Thread: arrays
View Single Post
  #9  
Old 03-10-2002, 10:36 PM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Re: arrays

Quote:
Originally posted by la_builder
i dun know nothing about arrays yet i read npc programming bud tough i dont understand and i dun even know where arrays are good for ,can some teach me in this
its simple.. you have 2 balls in different positions.. so..
ballsx={1,2} //arrays
ballsy={1,2} //arrays

ballsx[1]= 12;
ballsy[1]= 10;
ballsx[2]= 13;
ballsy[2]= 9;

or u can use it in any other place where you have 1 name but more numbers for it...
Reply With Quote