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
#2

by tha way if you can give me a tuto for that or somthink ! will be cool
& sorry for doble post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)