SA-MP Forums Archive
txtdraw not working - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: txtdraw not working (/showthread.php?tid=238965)



txtdraw not working - Amine_Mejrhirrou - 12.03.2011

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


Re : txtdraw not working - Amine_Mejrhirrou - 12.03.2011

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