In the QMenu I was working on I cant seem to find a way around this problem.
Here are the strings:
NPC Code:
function CreateList() {
for(temp.i=0;temp.i<player.weapons.size();temp.i++ ) {
if(player.weapons[temp.i].name.starts("-")) {
addstring("this.systems",temp.i);
}
elseif(player.weapons[temp.i].name.starts("Weapons/")) {
addstring("this.weapons",temp.i);
}
elseif(player.weapons[temp.i].name.starts("Tools/")) {
addstring("this.tools",temp.i);
}
elseif(player.weapons[temp.i].name.starts("Toys/")) {
addstring("this.toys",temp.i);
}
else {
addstring("this.extra",temp.i);
}
}
}
Then when I go to draw the values that are in say this.weapons it will show the correct value if I have it echo clientside, but still draws -IRC
NPC Code:
function PopList() {
ItemList.clearrows();
for(temp.i=0;temp.i<thiso.currentbag.size();temp.i ++) {
ItemList.addrow(temp.i,player.weapons[temp.i].name);
}
ItemList.setselectedrow(0);
}
Am I doing something horribly wrong? Someone else said that they were having the same problem. Thanks