25.10.2011, 01:27
I'm making a rp gamemode,
But when i do /stats it shows the stats except
Shows admin level correct
It shows the other stats as i1/4
Also if they is stats as 0 the ones that show as i1/4 dont show nothing.
But when i do /stats it shows the stats except
Shows admin level correct
It shows the other stats as i1/4
Also if they is stats as 0 the ones that show as i1/4 dont show nothing.
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: %s | Kills: %s | Deaths: %s |", Admin, Cash, Kills, Deaths);
SendClientMessage(playerid, Stats_Color,coordsstring);
}
}