TextDrawColor it does not work
#1

Hello friends , I need your help . I created a condition in my script , which returns 1, arrow color in my TextDraw , but if it returns 0 , I would to set another color. The test is perfect , but is not setting the color. I used the hexadecimal method to use as a function parameter , but nothing happens , my TextDraw is always white . If they can help me , thank you.

My TetxDraw:
Код:
Textdraw12 = TextDrawCreate(507.199645, 95.573303, ".");
	TextDrawLetterSize(Textdraw12, 1.194795, 4.504528);
	TextDrawAlignment(Textdraw12, 1);
	TextDrawSetShadow(Textdraw12, 0);
	TextDrawSetOutline(Textdraw12, 1);
	TextDrawBackgroundColor(Textdraw12, 51);
	TextDrawFont(Textdraw12, 1);
	TextDrawSetProportional(Textdraw12, 1);
The testing:
Код:
if(cache_num_rows() > 0)
	{
	    TextDrawSetString(Textdraw12, "TESTING");
		TextDrawColor(Textdraw12, 0xFF0000FF);
		SendClientMessage(playerid, 0xFF0000FF, "1");
	}
	else
	{
	    TextDrawSetString(Textdraw12, "TESTING");
	    TextDrawColor(Textdraw12, 0x00FF00FF);
	    SendClientMessage(playerid, 0x00FF00FF, "0");
	}
Reply
#2

Try this:
pawn Код:
TextDrawSetString(Textdraw12, "{FF0000}TESTING"); //for success
//and
TextDrawSetString(Textdraw12, "{00FF00}TESTING"); //for failure
and remove the Color functions.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)