Quote:
Originally Posted by killerogue
<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