That's just a debug line, so I could see what was being passed.
Anyways, I got it fixed, though I think it's a bug. I could not directly edit the clientr.items array, I had to make a temp.array to hold it, then edit it, and plug the info back into the clientr.items.
PHP Code:
if (params[0]=="addquantity") {
for (i=0;i<clientr.items.size();i++) {
if (clientr.items[i][0]==params[1]) temp.itemindex=i;
}
temp.items=clientr.items;
temp.items[temp.itemindex][1]=params[2];
clientr.items=temp.items;
}