SA-MP Forums Archive
TextDrawColor - 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 (/showthread.php?tid=301082)



TextDrawColor - antonio112 - 03.12.2011

Hey people, I was wondering, can I change a TextDrawColor later on, after I created it? Or it's possible just right after you created it? Thanks.

ps: Just realised I should've posted this question in Little coding questions - For general minor queries 5 topic. Sorry about that.


Re: TextDrawColor - grand.Theft.Otto - 03.12.2011

https://sampwiki.blast.hk/wiki/GameTextStyle

The text colors will also work in textdraw.


Re: TextDrawColor - antonio112 - 03.12.2011

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/GameTextStyle

The text colors will also work in textdraw.
Still, that didn't answer my question. I tried to change a textdraw color, in different colors but didn't work. Am I doing something wrong or it's this impossible?

ps: Well, silly me, that kinda solved my problem ... But still, let's say I want a different color? How should I go with it?


Re: TextDrawColor - grand.Theft.Otto - 03.12.2011

Quote:
Originally Posted by antonio112
Посмотреть сообщение
Still, that didn't answer my question. I tried to change a textdraw color, in different colors but didn't work. Am I doing something wrong or it's this impossible?

ps: Well, silly me, that kinda solved my problem ... But still, let's say I want a different color? How should I go with it?
What do you mean ?


Re: TextDrawColor - antonio112 - 03.12.2011

Well, let's say I have a fuel system based on TextDraw, right?

When my fuel reaches 20 or lower, I want its color to change to red. I tried it using TextDrawColor function in my "LowerFuel" timer ... but didn't work. So, TextDrawColor function only works right after I used TextDrawCreate function or I can use it at any time and I did something wrong in my "LowerFuel" timer?


Re: TextDrawColor - grand.Theft.Otto - 03.12.2011

Sorry, I just saw the edited part in your last post.

Let's see the LowerFuel timer.


Re: TextDrawColor - MP2 - 03.12.2011

You may have to hide the textdraw and re-show it for changes to take effect.