Help with GetPlayerPing
#2

first off, it says "SERVER: Unknown Command" because you don't have a return 1; on it. Second, GetPlayerPing returns a number, the "Ping: ~w~%s" should be "Ping: ~w~%d"
pawn Код:
// command
    CMD:ping(playerid,params[])
    {
        if(ping[playerid] == false)
        {
            new string[128];
            format(string,sizeof(string),"Ping: ~w~%d",GetPlayerPing(playerid));
            TextDrawSetString(PingText[playerid],string);
            ping[playerid] = true;
        }
        else
        {
            TextDrawHideForPlayer(playerid,PingText[playerid]);
            ping[playerid] = false;

        }
        return 1;
    }
Reply


Messages In This Thread
Help with GetPlayerPing - by Goldilox - 13.06.2013, 01:36
Re: Help with GetPlayerPing - by dubyabeast - 13.06.2013, 01:43
Re: Help with GetPlayerPing - by Goldilox - 13.06.2013, 01:52

Forum Jump:


Users browsing this thread: 1 Guest(s)