12.03.2011, 17:25
hi all
i was trying to creat a text draw that will show the heath of the player but i don't know why it wont work ...
this is the codes
the timer work properly but the the texdraw is not working ! any hlp plz
i was trying to creat a text draw that will show the heath of the player but i don't know why it wont work ...
this is the codes
Quote:
new Text:Health; |
Quote:
public OnGameModeInit() { Health = TextDrawCreate(2.000000,220.000000, " "); TextDrawFont(Health, 3); TextDrawColor(Health,0x24BF008; TextDrawLetterSize(Health, 0.439999, 1.400000); } |
Quote:
public inf2(playerid) { new Float:health; GetPlayerHealth(playerid, health); TextDrawDestroy(Health); new string[48]; format(string, sizeof(string), "Health: %s", health ); TextDrawSetString(Health, string); TextDrawShowForPlayer(playerid, Health); } |