textdraw problem
#1

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():

Код:
new Float:health;
            GetPlayerHealth(playerid,health);
            if (health < 11)
            {
                SetTimer("ShowPlayerHealthNotification", 1000, 0);
            }
And this:
Код:
public ShowPlayerHealthNotification(playerid)
{
	TextDrawShowForPlayer(playerid, Lowhealth);
	SetTimer("ShowPlayerHealthNotification2", 600, 0);
}
public ShowPlayerHealthNotification2(playerid)
{
	TextDrawHideForPlayer(playerid, Lowhealth);
	TextDrawShowForPlayer(playerid, Lowhealth2);
	SetTimer("ShowPlayerHealthNotification", 600, 0);
}
I don't understand what's the problem xD.
Reply


Messages In This Thread
textdraw problem - by Mr.Ilusion - 08.10.2010, 08:02
Re: textdraw problem - by Voldemort - 08.10.2010, 08:04
Re: textdraw problem - by Mr.Ilusion - 08.10.2010, 08:06
Re: textdraw problem - by iggy1 - 08.10.2010, 08:09
Re: textdraw problem - by Lenny the Cup - 08.10.2010, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)