txtdraw not working
#1

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
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);
}

the timer work properly but the the texdraw is not working ! any hlp plz
Reply


Messages In This Thread
txtdraw not working - by Amine_Mejrhirrou - 12.03.2011, 17:25
Re : txtdraw not working - by Amine_Mejrhirrou - 12.03.2011, 18:25

Forum Jump:


Users browsing this thread: 1 Guest(s)