View Single Post
  #2  
Old 09-17-2011, 05:24 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
This is an example of an array:
PHP Code:
temp.array = {"hello","world"};
player.chat temp.array[0]; // 0 is our index 
Output:
PHP Code:
hello 
Using an index of 1 would result in:
PHP Code:
world 
If you just want to see if a player's account name is in the array you can use:
PHP Code:
if ( player.account in temp.array ) {
  
// do stuff

Reply With Quote