SA-MP Forums Archive
CreateDynamic3DTextLabel - Colours? - 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: CreateDynamic3DTextLabel - Colours? (/showthread.php?tid=511261)



CreateDynamic3DTextLabel - Colours? - GiS - 04.05.2014

Is it possible to make use of several colours in a dynamic 3D text label? The following doesn't seem to work:

pawn Код:
CreateDynamic3DTextLabel("Your {COLOR_YELLOW}3DTextLabel", COLOR_WHITE, ...);
This just shows a white text label with the text "Your {COLOR_YELLOW}3DTextLabel" but without a yellow colour.


Re: CreateDynamic3DTextLabel - Colours? - Djean - 04.05.2014

Yes it is possible to have seven (7) colors in a Text Label
do you have "COLOR_YELLOW" defined at the top of your script? Like this
#define COLOR_YELLOW 0xFFFF00
If not your need to do this.


Re: CreateDynamic3DTextLabel - Colours? - VenomMancer - 04.05.2014

You can make like this :

pawn Код:
CreateDynamic3DTextLabel("{FFFFFF}Hello i am {FF0000}cool", -1, ...);
"Hello i am" will see on White Color.
"cool" will see on Red Color.

use this for more colors http://www.colorpicker.com/

Maybe i help you
sorry for my bad english.


Re: CreateDynamic3DTextLabel - Colours? - Konstantinos - 04.05.2014

Quote:
Originally Posted by Djean
Посмотреть сообщение
Yes it is possible to have seven (7) colors in a Text Label
do you have "COLOR_YELLOW" defined at the top of your script? Like this
#define COLOR_YELLOW 0xFFFF00
If not your need to do this.
Why only 7 colours?

Just defining like that wouldn't work because it would take it as text in the string.

https://sampwiki.blast.hk/wiki/Colors#Color_embedding