09.02.2013, 13:09
I am using GEOInfo include, when I get ingame and type /ipcheck I get a weird thing, screenshot will make you understand what I mean
And before I added the "GetPlayerCountry and GetPlayerCity" the command used to work perfect, please help me out.
pawn Code:
CMD:ipcheck(playerid, params[])
{
new playerb, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
if(!aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You are not on admin duty.");
if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ipcheck [playerid]");
if(!IsPlayerLoggedIn(playerb)) return SendClientMessage(playerid, COLOR_GREY, "Invalid player id.");
format(string, sizeof(string), "{FF9900}Name: {FFFFFF}%s {FF9900}| IP: {FFFFFF}%s | Country: {FFFFFF}%s | City: {FFFFFF}%s", RPN(playerb), RPIP(playerb), GetPlayerCountry(playerid), GetPlayerCity(playerid));
SendClientMessage(playerid, COLOR_ORANGE, string);
return 1;
}