View Single Post
  #9  
Old 10-17-2009, 12:50 PM
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
What I am trying to do is. Skip the need for

NPC Code:
this.array = {1,2,3};



And just do:

PHP Code:
 this.array[#].value = "blah"; 
But to do it in a for loop that size changes. I may not know if I need {1, 2} or {1,2,3}.

Here is what I mean, kinda:

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  for( 
i=0i<10i++) {
    
temp.array[i] = new TStaticVar();
    
withtemp.array[i] ) {
      
this.var = "test:" SPC i;
    }
  }
  
  
player.chat temp.array[1].var;

Which does not work obviously.
Reply With Quote