View Single Post
  #9  
Old 01-16-2010, 03:50 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by 12171217 View Post
And the syntax would be? o.o
Depends what you mean by "creating new objects" really. But, something along these lines:

PHP Code:
this.array = new[0];
this.array.add(this);  // Would add the current object into the array
this.array.add(findPlayer("xXziroXx"));  // Would add the player object (if online)

// The following example is the same as the above.

this.array = { thisfindPlayer("xXziroXx") };  // Would create a two sized array with the current object, as well as the object found by the findPlayer() function. 
Was that what you were looking for?
Reply With Quote