View Single Post
  #1  
Old 08-01-2007, 06:08 PM
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
Editing clientr.arrays... !pissed!

I'm getting really annoying... anytime I try to edit a subarray for a clientr.array, it never changes the value.

PHP Code:
function onActionserverside() {
  if (
params[0]=="refreshinfo") {
    for (
i=0;i<clientr.items.size();i++) {
      
temp.newarray=findNPC("Items").(@clientr.items[i][0]);
      
clientr.items[i][2]=temp.newarray;
    }
  }

Now it's supposed to take the array from the Items DBNPC and replace the current array, but it's not changing it at all. The even more annoying thing is that
PHP Code:
  if (params[0]=="addquantity") {
    
temp.newarray[1]=params[2];
    
clientr.items[params[1]]=temp.newarray;
  } 
DOES work. Anything I'm doing wrong here that's preventing me from editing the subarrays?
Reply With Quote