View Single Post
  #1  
Old 06-05-2007, 10:29 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Object NOT Loading Vars >_>

First off here's the part of the function in the class:

PHP Code:
function reflectItem(archpresufid)
{
  echo(
"[ItemReflect]");
  
file = new TStaticVar();
  
TObj = new TStaticVar();
  
TObj.id id;
  
TObj.qty this.item.qty
  if (
this.item != NULL) {
    echo(
"Object exists");
    
file.loadVars("mud/archetypes/" arch ".arc"); // Problem found, file is not loading the vars.
      
echo(file.getVarNames());
    echo(
"Loaded vars and removed vars...");
    for(var : 
file.getDynamicVarNames()) {
      
TObj.(@ var) = file.(@ var);
      echo(
"[ItemReflect]:" SPC var @ "=" file.(@ var));
    }
  } 

The problem is, the "file" object is not returning any of the vars it's loading. >_> What the hell is going on here.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote