/stats command
#9

pawn Code:
CMD:stats(playerid,params[])
{
    new password = PlayerInfo[playerid][pPass];
    new money = PlayerInfo[playerid][pCash];
    new deaths = PlayerInfo[playerid][pDeaths];
    new kills = PlayerInfo[playerid][pKills];
    new score = PlayerInfo[playerid][pScore];
    new admin = PlayerInfo[playerid][pAdmin];
    new vip = PlayerInfo[playerid][pVIP];
    new killpoints = PlayerInfo[playerid][pKillPoints];
    new string[500];
    format(string,sizeof(string),"Password: %s | Money: %d | Deaths: %d | Kills: %d | Score: %d | Admin: %d | VIP: %d | Killpoints: %d",password,money,deaths,kills,score,admin,vip,killpoints);
    SendClientMessage(playerid,COLOR_WHITE,string);
    return 1;
}
You were opening 3 brackets but closing only 2.
Reply


Messages In This Thread
/stats command - by Azzeto - 13.10.2011, 18:14
Re: /stats command - by MonkZemun - 13.10.2011, 18:19
Re: /stats command - by Azzeto - 13.10.2011, 18:21
Re: /stats command - by MonkZemun - 13.10.2011, 18:28
Re: /stats command - by Azzeto - 13.10.2011, 18:30
Re: /stats command - by Giovanni - 13.10.2011, 18:32
Re: /stats command - by Azzeto - 13.10.2011, 18:36
Re: /stats command - by Azzeto - 13.10.2011, 18:54
Re: /stats command - by SmiT - 13.10.2011, 19:14
Re: /stats command - by Kush - 13.10.2011, 19:29
Re: /stats command - by Azzeto - 13.10.2011, 19:40
Re: /stats command - by Pillhead2007 - 24.03.2013, 16:49
Re: /stats command - by ButlerSmcs - 29.07.2017, 10:11
Re: /stats command - by Fratello - 29.07.2017, 11:18

Forum Jump:


Users browsing this thread: 2 Guest(s)