29.04.2010, 20:39
Ok well.. i changed the look of the stat bar, and now it doesnt work anymore, all the other id's get id 0's stats.
Код:
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:%d", GetPlayerScore(playerid)); TextDrawSetString(Textdraw4, string); format(string, sizeof(string), "Deaths:%d", GetPVarInt(playerid,"Deaths")); TextDrawSetString(Textdraw5, string); format(string, sizeof(string), "ID:%d", GetPlayerID(playerid)); TextDrawSetString(Textdraw6, string); }