View Single Post
  #1  
Old 01-21-2006, 03:43 PM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
Resolved: for (pl: allplayers) { Problem?

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?
Attached Images
File Type: bmp error.bmp (510.7 KB, 126 views)
__________________
Sometimes I wonder if I think too big.
Quote:
Originally Posted by Admins
I've moved the fox map to "levelstoobig/" because a terrain gmap of 1024x1024 levels is clearly too huge (the kingdoms main map is 40x40 and is already quite big). It was taking a lot of memory and was slowing down the computer.
Reply With Quote