pawn Код:
FUNC:StatsUpdater()
{
for(new i, e = GetMaxPlayers(); i != e; ++i)
{
if(IsPlayerConnected(i))
{
static
string[128],
Float:health,
Float:armour
;
GetPlayerHealth(i, health);
GetPlayerArmour(i, armour);
format(string, 128,"Name: %s | H: %f | A: %f | Score: %d | Kills: %d | Deaths: %d | Rank: (%d) %s",PlayerName(i),health,armour,GetPlayerScore(i),pInfo[i][Kills],pInfo[i][Deaths],pInfo[i][RankID],pInfo[i][RankName]);
PlayerTextDrawSetString(i, tStats[i], string);
// PlayerTextDrawShow(i,tStats[i]);
// DEBUG
printf("%s", string);
}
}
return 1;
}