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