View Single Post
  #6  
Old 06-02-2007, 04:19 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by killerogue View Post
<stuff>
You look glad I released my scripts I can tell thats based on stuff I made.

You know, you don't have to initialize all objects to TStaticVar (but its good insurance), TGraalVar is variable after all.

Observe:
PHP Code:
public function saveItems() {
  
temp.file = 0;
  
temp.i = 0;
  
temp.path = 0;
  
temp.data = 0;
  
  
  for (
i = this.items.size() - 1; i > -1; i --) {
    if (
this.items[i].archname != null) {
      
data = this.items[i].getSaveData();
      
file.(@ "item" @ data[0]) = {data[1], data[2], data[3]};
    }
  }
  
path = MudControl.containerpath @ this.conttype @ "/cont" @ this.contid @ ".txt";
  
file.saveVars(path, 0);
} 
file is not TStaticVar :P
__________________
Reply With Quote