Help me in fixing /setadmin command bug.
#8

updated my sscanf but nothing happened . but i want to say that /stats [id] is working. ↓

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

    if(!isnull(params))
        id = strval(params);
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_RED,"Player is not connected");
    new money = PlayerInfo[id][pCash];
    new deaths = PlayerInfo[id][pDeaths];
    new kills = PlayerInfo[id][pKills];
    new warn = PlayerInfo[id][pWarns];
    new string[200];
    format(string,sizeof(string),"%s's Statistics: | Money: %d | Kills: %d | Deaths: %d | Ratio: %0.2f | Warns: %d| Wins: %d | RoundsPlayed: %d | Winning Ratio: %0.2f | ",paName(playerid),money,kills,deaths,Float:kills/Float:deaths,warn);
    SendClientMessage(playerid,COLOR_WHITE,string);
    return 1;
}
Reply


Messages In This Thread
Help me in fixing /setadmin command bug. - by Champ - 13.07.2013, 09:50
Re: Help me in fixing /setadmin command bug. - by ToiletDuck - 13.07.2013, 09:56
Re: Help me in fixing /setadmin command bug. - by Champ - 13.07.2013, 10:03
Re: Help me in fixing /setadmin command bug. - by RALL0 - 13.07.2013, 10:06
Re: Help me in fixing /setadmin command bug. - by Champ - 13.07.2013, 10:10
Re: Help me in fixing /setadmin command bug. - by RALL0 - 13.07.2013, 10:11
Re: Help me in fixing /setadmin command bug. - by JaKe Elite - 13.07.2013, 10:13
Re: Help me in fixing /setadmin command bug. - by Champ - 13.07.2013, 10:14
Re: Help me in fixing /setadmin command bug. - by JaKe Elite - 13.07.2013, 10:17
Re: Help me in fixing /setadmin command bug. - by Champ - 13.07.2013, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)