View Single Post
  #4  
Old 06-05-2007, 11:55 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
The 'True' Problem

PHP Code:
public function loadItems()
{
  
temp.data 0;
  
temp.file 0;

  
path format(MudControl.charitems "%s.arc"this.account);
  
file.loadVars(path);
  
  
with (file) {
    
keys getstringkeys("this.item");
    echo(
keys);
  }
    
  for (
0keys.size(); i++) {
    
data.clear();
    
data file.(@ "item" keys[i]);
    echo(
data[0]);
      
loadItem(idata[0], data[3], data[1], data[2]);
  }

Zeroed in on the true problem with the help of Chandler, the vars are being properly send to the function that calls what I first posted. loadItem is that function.

Here's the issue, the data line. When echoing "data" or "data[0]" it returns the entire array where as "data[1] - data[3]" return zero when they shouldn't. >_>


Edit: Didn't Inverness have this same issue with copying arrays? -.-
__________________


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