Raised This Month: $ Target: $400
 0% 

Help for kickmenu with player country.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-02-2010 , 11:55   Help for kickmenu with player country.
Reply With Quote #1

I got some problem with the kickmenu with player country.
I have compiled the amxx, and I tested with my friend.
He said he could not see anything after my name and his name too, but I can see his country after his name and my name is no country too.
Here is the code what I have edited, please help to correct my mistake.
The red color is what I have added in the basic code from plmenu.sma
Code:
#include <geoip> //For test)
new g_IP[16], g_country[32] //For test)
*leave out
displayKickMenu(id, pos)
{
*leave out
	for (new a = start; a < end; ++a)
	{
		i = g_menuPlayers[id][a]
		get_user_name(i, name, 31)
		get_user_ip(id, g_IP, 15, 1)
		geoip_country(g_IP, g_country, 45)

		if (access(i, ADMIN_IMMUNITY) && i != id)
		{
			++b
		
			if (g_coloredMenus)
				len += format(menuBody[len], 511-len, "\d%d. %s (%s)^n\w", b, name, g_country)
			else
				len += format(menuBody[len], 511-len, "#. %s (%s)^n", name, g_country)
		} else {
			keys |= (1<<b)
				
			if (is_user_admin(i))
				len += format(menuBody[len], 511-len, g_coloredMenus ? "%d. %s \r*^n\w" : "%d. %s (%s) *^n", ++b, name, g_country)
			else
				len += format(menuBody[len], 511-len, "%d. %s (%s)^n", ++b, name, g_country)
		}
	}
*leave out
}
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others

Last edited by GarbageBox; 08-02-2010 at 12:09.
GarbageBox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-02-2010 , 18:09   Re: Help for kickmenu with player country.
Reply With Quote #2

I think it's just one line that you forgot to modify completely.



PHP Code:
                len += format(menuBody[len], 511-leng_coloredMenus "%d. %s (%s)\r*^n\w" "%d. %s (%s)*^n", ++bnameg_country
__________________
fysiks is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-02-2010 , 21:52   Re: Help for kickmenu with player country.
Reply With Quote #3

This line I have already edited in my code...
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2010 , 01:36   Re: Help for kickmenu with player country.
Reply With Quote #4

Quote:
Originally Posted by GarbageBox View Post
This line I have already edited in my code...
I knew you were going to say that! You didn't look close enough. Replace your line with my line. Trust me.
__________________
fysiks is offline
GarbageBox
Senior Member
Join Date: Feb 2010
Old 08-03-2010 , 01:47   Re: Help for kickmenu with player country.
Reply With Quote #5

Oh! Thank you so much
I compared the two lines of code to have discovered after the original is different and now I can see the country after my name.
__________________
You can be a SUPER coder but you Haven't to say such as "stupid, etc." words to the others
GarbageBox is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-03-2010 , 19:00   Re: Help for kickmenu with player country.
Reply With Quote #6

Quote:
Originally Posted by GarbageBox View Post
Oh! Thank you so much
I compared the two lines of code to have discovered after the original is different and now I can see the country after my name.
Yeah . The one that you did edit would work for games that don't have colored menus.
__________________
fysiks 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 00:08.


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