TextDrawColor it does not work - 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)
+--- Thread: TextDrawColor it does not work (
/showthread.php?tid=562737)
TextDrawColor it does not work -
RafaelOsio - 11.02.2015
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");
}
Re: TextDrawColor it does not work -
HazardouS - 11.02.2015
Try this:
pawn Код:
TextDrawSetString(Textdraw12, "{FF0000}TESTING"); //for success
//and
TextDrawSetString(Textdraw12, "{00FF00}TESTING"); //for failure
and remove the Color functions.