show stats help
#2

pawn Код:
forward ShowStats(playerid);
public ShowStats(playerid)
{
  if(IsPlayerConnected(playerid)&&IsPlayerConnected(playerid))
    {
        new Admin = PlayerInfo[playerid][pAdmin];
        new Cash = GetPlayerMoney(playerid);
        new Kills = PlayerInfo[playerid][pKills];
        new Deaths = PlayerInfo[playerid][pDeaths];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        new coordsstring[256];
        SendClientMessage(playerid, Stats_Color, "Your Stats");
        format(coordsstring, sizeof(coordsstring), " Admin Level: %d | Cash: %d | Kills: %d | Deaths: %d |", Admin, Cash, Kills, Deaths);
        SendClientMessage(playerid, Stats_Color,coordsstring);
        }
}
you was using strings ( %s ) on the other three variables
Reply


Messages In This Thread
show stats help - by Tom1412 - 25.10.2011, 01:27
Re: show stats help - by StuffBoy - 25.10.2011, 01:52
Re: show stats help - by SampEver1 - 25.10.2011, 01:57
Re: show stats help - by StuffBoy - 25.10.2011, 02:00
Re: show stats help - by Tom1412 - 25.10.2011, 02:16
Re: show stats help - by =WoR=Varth - 25.10.2011, 02:47
Re: show stats help - by Tom1412 - 25.10.2011, 03:06

Forum Jump:


Users browsing this thread: 2 Guest(s)