View Single Post
  #4  
Old 08-28-2008, 04:11 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
getstringkeys() can't but used directly on an object (obj.getstringkeys())
Use it inside a with() scope.

And, for the files, use obj.getDynamicVarNames();

PHP Code:
function onCreated() {
  
temp.file.loadvars("gangs/PizzaClan.txt");
  
  
temp.gang_PizzaClan = new TStaticVar();

  for(
temp.var : temp.file.getDynamicVarNames()) {
    
temp.gang_PizzaClan.(@var) = temp.file.(@var);
  }

  
temp.keys 0;
  
with(temp.gang_PizzaClan) {
    
temp.keys getstringkeys("variable_prefix");
  }

Just a fast mockup, but something like that would work I guess
__________________
Reply With Quote