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 (i = 0; i < keys.size(); i++) {
data.clear();
data = file.(@ "item" @ keys[i]);
echo(data[0]);
loadItem(i, data[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? -.-