/ipcheck problem
#3

Quote:
Originally Posted by Ken97
View Post
pawn Code:
CMD:ipcheck(playerid, params[])
{
    new id, string[128];
    new ip[24];
    new name[MAX_PLAYER_NAME];
    new country[50];
    new city[24];
    GetPlayerCountry(id, country, sizeof(country));
    GetPlayerCity(id, city, sizeof(city));
    GetPlayerIp(id, ip, sizeof(ip));
    GetPlayerName(id,name,sizeof(name));
    if(!IsPlayerLoggedIn(id)) 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", id)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ipcheck [playerid]");
    if(!IsPlayerLoggedIn(id)) 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", name, ip, country, city);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    return 1;
}
Country and City doesn't appear, for example I get this IG:

Name: Mr.1337 | IP:blabla.blabla.blabla | Country: | City:
Reply


Messages In This Thread
/ipcheck problem - by Mr.1337 - 09.02.2013, 13:09
Re: /ipcheck problem - by Neil. - 09.02.2013, 13:35
Re: /ipcheck problem - by Mr.1337 - 09.02.2013, 16:57
Re: /ipcheck problem - by Scenario - 09.02.2013, 17:01
Re: /ipcheck problem - by Mr.1337 - 09.02.2013, 17:05
Re: /ipcheck problem - by Mr.1337 - 10.02.2013, 07:23

Forum Jump:


Users browsing this thread: 1 Guest(s)