08.10.2010, 08:02
Hello everyone, i have a problem with an textdraw.
On right top I made a textdraw called "Low health", and when you have health under 10 the message will be shown.
My problem is: The message appears at any health level.
I have at OtherTimer():
And this:
I don't understand what's the problem xD.
On right top I made a textdraw called "Low health", and when you have health under 10 the message will be shown.
My problem is: The message appears at any health level.
I have at OtherTimer():
Код:
new Float:health; GetPlayerHealth(playerid,health); if (health < 11) { SetTimer("ShowPlayerHealthNotification", 1000, 0); }
Код:
public ShowPlayerHealthNotification(playerid) { TextDrawShowForPlayer(playerid, Lowhealth); SetTimer("ShowPlayerHealthNotification2", 600, 0); } public ShowPlayerHealthNotification2(playerid) { TextDrawHideForPlayer(playerid, Lowhealth); TextDrawShowForPlayer(playerid, Lowhealth2); SetTimer("ShowPlayerHealthNotification", 600, 0); }