weird problem with player country or player ip
#1

PHP код:
CMD:whois(playeridparams[])
{
    if(
connected[playerid] == true) return GameTextForPlayer(playerid"~r~Spawn First"50005);
    if(
pInfo[playerid][Admin] < 3) return SendClientMessage(playerid, -1"{C3C3C3}(INFO) You don't have the priviliges to use this command.");
    {
            new 
str[500], targetip[90], str2[144];
            if(
sscanf(params"u"target)) return SendClientMessage(playerid, -1"{c3c3c3}(INFO) /whois [id]");
            if(
target == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1"{c3c3c3}(INFO) Player offline.");
            
GetPlayerIp(targetip16);
            
GetPlayerCountry(targetstr2sizeof(str2));
            
format(strsizeof(str), "{ff0000}%s's ip is '%s' connected from '%s'"PlayerName[target], ip[target], str2[target]);
               
SendClientMessage(playerid, -1str);
    }
    return 
1;

When i do that command to myself it shows ip and country with no issues, but when i type /whois 1 or any other id, it removes 2/3 letters from country name, like, "Kingdoom" instead of United Kingdoom, and ip's are like ".123.2312.3" instead of 12.3.2314.4 you know. Using whitetiger's geo location
Reply


Messages In This Thread
weird problem with player country or player ip - by wallen - 12.03.2018, 14:40
Re: weird problem with player country or player ip - by Sew_Sumi - 12.03.2018, 15:30
Re: weird problem with player country or player ip - by RedFusion - 12.03.2018, 15:32
Re: weird problem with player country or player ip - by wallen - 12.03.2018, 15:55
Re: weird problem with player country or player ip - by Sew_Sumi - 12.03.2018, 15:56

Forum Jump:


Users browsing this thread: 2 Guest(s)