View Single Post
  #18  
Old 10-20-2009, 06:19 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
Hey, back again. Here is what I got so far. But is there any way to use a function instead of having to use the 2 lines under //copy?

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
temp.obj = new TStaticVar();
  
temp.obj2 = new TStaticVar();
  
  for( 
i=0i<10i++) {
    
temp.obj.add("");
    
withtemp.obj[i] ) {
      
this.var = "test:" SPC i;
      
this.test "works:" SPC i;
    }
  }
  
  
//copy
  
temp.obj2.loadvarsfromarraytemp.obj[2].savevarstoarray(true) );
  
obj.test temp.obj2;
  
  
//test
  
player.chat obj.test.getdynamicvarnames();

Reply With Quote