Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-31-2006, 04:20 PM
Lao_Su2 Lao_Su2 is offline
Panda
Lao_Su2's Avatar
Join Date: Jan 2002
Location: Draper, Utah
Posts: 645
Lao_Su2 is on a distinguished road
Send a message via AIM to Lao_Su2
Problem when drawing inventory with -IRC

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
__________________
Panda

Last edited by Lao_Su2; 12-31-2006 at 04:20 PM.. Reason: Spelling errors
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.