Raised This Month: $ Target: $400
 0% 

Menu doesnt show correctly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
faki
Senior Member
Join Date: Jul 2013
Old 12-31-2013 , 05:47   Menu doesnt show correctly
Reply With Quote #1

Here is code:
Code:
public clcmd_hookserver( playerID )
{
	new OutputServers[ ServerData ]
	
	new menu = menu_create( "Server List" , "MenuServerHandler" );
	new msgcheck[512]

	for( new i = 0 ; i < gMaxServers ; i++ )
	{
	ArrayGetArray( aServerData, i , OutputServers )
	formatex(msgcheck, 511, "%s, \rPlayers: \w%s/%s, \rMap: \y%s", OutputServers[ HostServer ],OutputServers[ Players ],OutputServers[ MAXPlayers ],OutputServers[ Mapn ])

	if(!equal(OutputServers[ Status ],"0")) {
	menu_additem( menu, msgcheck)
	}
	}

	menu_display( playerID, menu )
}
In game shows only to item "6" and reject after them, not show and exit button.
(i have 7 items)
How can i fix it ?

PP:
here is example:

Last edited by faki; 12-31-2013 at 06:00.
faki is offline
 



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 -4. The time now is 10:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode