TextDraw
#1

Hello, I wanna change TextDrawColor if vehicle health ....
Код:
		 // code in OnGameModeInit callback
		new Float:vehHealth;
		GetVehicleHealth(maskesID, vehHealth);
		Textdraw18 = TextDrawCreate(373.000000, 412.000000, "100%");
                TextDrawBackgroundColor(Textdraw18, 255);
                TextDrawFont(Textdraw18, 3);
                TextDrawLetterSize(Textdraw18, 0.259999, 0.899999);
                TextDrawSetOutline(Textdraw18, 0);
                TextDrawSetProportional(Textdraw18, 1);
                if(vehHealth >= 500) TextDrawColor(Textdraw18, 0x00FF00FF);
		if(vehHealth < 500) TextDrawColor(Textdraw18, 0xFF0000FF);
                TextDrawSetShadow(Textdraw18, 1);
I create global variable:
Код:
new maskesID;
and :
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
	maskesID = vehicleid;
	return 1;
}
And why text always be red? [0xFF0000FF]

P.S. Sorry for bad english
Reply


Messages In This Thread
TextDraw - by MrMou6 - 20.10.2013, 17:07
Re: TextDraw - by MrMou6 - 20.10.2013, 17:43
Re: TextDraw - by Miguel - 20.10.2013, 17:50

Forum Jump:


Users browsing this thread: 2 Guest(s)