09.09.2018, 08:29
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?
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;
}