/stats
#1

If i do only /stats, it shows correctly my stats, but if i do /stats name/id it shows only the message: "You can also use /stats id bla bla"

Why?

pawn Код:
CMD:stats(playerid, params[])
{
    new id;
    sscanf(params, "u", id);

    SCM(playerid,-1, "* You can also do "ORANGE_RED"/stats [playername/id] "WHITE"to check other player's stats.");

    if (isnull(params))
    {
    ShowStats(playerid);
    }

    else if(IsPlayerConnected(id))
    {
    ShowStats(id);
    }

    else SCM(playerid,COLOR_RED,"* Player is not connected or is invalid id/name.");
   
    return 1;
}
Reply


Messages In This Thread
/stats - by KinderClans - 09.09.2018, 08:29
Re: /stats - by Infin1ty - 09.09.2018, 08:57
Re: /stats - by KinderClans - 09.09.2018, 12:34
Re: /stats - by Shinja - 09.09.2018, 12:39
Re: /stats - by UFF - 09.09.2018, 12:39
Re: /stats - by v1k1nG - 09.09.2018, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)