NPC Code:
new GuiPopUpMenuCtrl(H_AW_Selecter) {
profile = "DefaultMenuProfile";
x = 5;
y = 23;
width = 120;
height = 20;
text = "Account";
thiso.catchevent("H_AW_Selecter","onSelect","onSel ectaccount");
i=0;
for (pl: allplayers) {addtext(@pl,i);i++;}
}
Rc gives no errors and
when using that with my GUI, it lists 20 objects (See Attached Picture)
1 of which is a player (myself, im the only player on)
1 of which is the Npc server (thats not a player!)
and the other 18 are IRC channels T.T
But using
NPC Code:
for (i=0;i<=allplayerscounts;i++) {addtext(@players[i].account,i);}
Works just fine, only lists real players (just me at the time);
Server : Soakath
Weapon : H/Test
Sorry if this is a known bug
Am I just using it wrong?