View Single Post
  #7  
Old 01-25-2010, 07:59 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by LoneAngelIbesu View Post
So what is TStaticVar()'s parameter used for?
For stuff like this..

PHP Code:
//#CLIENTSIDE

function onCreated() {
  
// Object-based Design
  
new TStaticVar("Tree") {
    
this.30;
    
this.30;
  };
  
temp.= new Tree();
  
temp.a.+= 5;
  
temp.= new Tree();
  
temp.b.+= 2;
  
temp.= new Tree();
  
temp.c.-= 2;
  
temp.c.-= 4;
  
// Display Values
  
echo(temp.a.a SPC temp.a.b);  // 35 30
  
echo(temp.b.a SPC temp.b.b);  // 30 32
  
echo(temp.c.a SPC temp.c.b);  // 28 26

__________________
Quote:

Last edited by fowlplay4; 01-25-2010 at 08:12 AM..
Reply With Quote