Raised This Month: $ Target: $400
 0% 

Can't display menu anymore


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rambomst
SourceMod Donor
Join Date: Nov 2009
Location: Sydney, Australia
Old 05-29-2012 , 07:34   Can't display menu anymore
Reply With Quote #1

I used this piece of code awhile ago and it worked fine however now it refuses to work and I am getting no errors.

Code:
DisplayBanMenu(client)
{
	new Handle:menu = CreateMenu(MenuHandler_Ban);
	SetMenuTitle(menu, "Voteban player:");
	
	new String:clientName[256];
	for(new i = 1; i <= MaxClients; i++)
	{
		if(IsClientConnected(i) && IsClientInGame(i) && !IsFakeClient(i) && GetUserAdmin(i) == INVALID_ADMIN_ID)
		{
			GetClientName(i, clientName, sizeof(clientName));
			AddMenuItem(menu, clientName, clientName);
		}
	}
	DisplayMenu(menu, client, MENU_TIME_FOREVER);
}
__________________
rambomst is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 05-29-2012 , 07:52   Re: Can't display menu anymore
Reply With Quote #2

You have non-admins human players on server ?

*edit
Player who have added in admin list even without flags and immunity get they own admin ID

Last edited by Bacardi; 05-29-2012 at 07:53.
Bacardi is offline
Reply



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 02:26.


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