11.02.2015, 13:24
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:
The testing:
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);
Код:
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"); }