
02-28-2007, 08:27 AM
|
|
Banned
|
Join Date: Jan 2007
Posts: 656
|
|
Quote:
Originally Posted by Riot
Right here:
HTML Code:
for (temp.itemData: getstringkeys("this."))
temp.itemData.add(temp.itemData @"="@ makevar(@"this."@ temp.itemData));
You might want to change this to something like:
HTML Code:
for (temp.data: getstringkeys("this."))
temp.itemData.add(temp.data @"="@ makevar(@"this."@ temp.data));
Using the same name as the variable in the foreach and as the variable you're adding too will not work as expected.
Changing to that makes this file on the server for me:
HTML Code:
item-Black Sword="causeEffect=""Poison,Ice,Fire"",""100,75,75""","itemDescription=This great sword, once held by the almighty Chandler!",itemImage=block.png,"itemName=Black Sword",itemPrice=300000,weaponName=+Sword
joinedclasses=
scriptlogmissingfunctions=false
timeout=0
|
Thank you!
I see now, thanks again!
Quote:
Originally Posted by Stefan
To save an array you normally need to use savelines(). I am not sure for what also those makevars are used (e.g. you should write
PHP Code:
temp.newData.("item-"@ this.itemName) = temp.itemData;
). "new TGraalVar()" wont do anything either.
|
Oh, I see. I just see it being used, so I just use it.  |
|
|
|