CreateDynamic3DTextLabel - Colours?
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)