View Single Post
  #2  
Old 07-19-2002, 04:51 PM
GrowlZ1010 GrowlZ1010 is offline
defunct
Join Date: May 2002
Posts: 187
GrowlZ1010 is on a distinguished road
To find out the size (what I presume you mean by 'maximum') of an array, use the arraylen(var) function. This will return the number of individual slots inside the array itself. So to do something when a variable reaches the length of your array:

NPC Code:

if (yourvariable=arraylen(yourarray)){
// do stuff
}

Reply With Quote