View Single Post
  #1  
Old 01-17-2008, 05:34 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Appending to a clientr. array

So I'm setting an array on the serverside, it works fine. BUT it won't let me append to it... I mean, it will, but it's acting really strange.
First off, if I append to it(add(), or manually changing the arrays) it will show fine on the serverside. BUT, those same changes won't show on the clientside.

This is my echo of the array on the serverside:
"124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","""shortsword, """"2,2,2,0,2"""""",""longsword,""""2,2,2,0,2""""" ",""dagger,""""2,2,2,0,2"""""""

This is the echo clientside:
"124,woodensword,""Wooden Sword""","arca_sword_wooden,door.png","weapon,swor d,balanced","1,1,2,0,2","0,0,0,0,0","0,0,0"

What's with that? Oh, and here's the script(partial/edited out):
PHP Code:
      clientr.("wpn_" @ (@itemname) @ "-" @ (@itemid))={
        {
itemid,item.(@itemname).arcname,item.(@itemname).itemname},
        {
item.(@itemname).iconimage,item.(@itemname).weaponimage},
        {
item.(@itemname).type,item.(@itemname).weapontype,item.(@itemname).swordtype},
        
item.(@itemname).basestats,
        {
0,0,0,0,0},
        new[
item.(@itemname).nextsteps],
      };
      for (
i=0;i<item.(@itemname).nextsteps;i++) {
        
clientr.("wpn_" @ (@itemname) @ "-" @ (@itemid))[5][i]=(item.(@itemname).(@"progress_" i));
      } 
Reply With Quote