29.04.2010, 18:06
Why looping through all the players when you want to show the textdraw for a player only?
pawn Код:
forward stats(playerid);
public stats(playerid)
{
new Float:pHealth, Float:pArmour, string[15];
GetPlayerHealth(playerid,pHealth);
format(string, sizeof(string), "Health:%.0f", pHealth);
TextDrawSetString(Textdraw2, string);
GetPlayerArmour(playerid,pArmour);
format(string, sizeof(string), "Armour:%.0f", pArmour);
TextDrawSetString(Textdraw3, string);
format(string, sizeof(string), "Kills:%.0f", GetPlayerScore(playerid));
TextDrawSetString(Textdraw4, string);
format(string, sizeof(string), "Deaths:%.0f", GetPVarInt(playerid,"Deaths"));
TextDrawSetString(Textdraw5, string);
}