Create3DTextLabel -
Aleksabre - 10.08.2015
Код:
Create3DTextLabel("POLICE\n(#FF0000)ENTRANCE STRICTLY FORBIDDEN",0x0000BBAA,1537.7209,-1627.4091,13.3828, 50.0, 0, 0);
It's kinda working, but; the problem is;
in the next row; entrance strictly forbidden, the colour doesn't change to 'red', it just says in the new row: (FFF000)entrance....
how do I make it red?
Like POLICE blue
and in the next row; entrance.... in red? thanks
Re: Create3DTextLabel -
IgorLuiz - 10.08.2015
correct:
{FF0000}
wrong:
(FF0000)
try:
PHP код:
Create3DTextLabel("POLICE\n{FF0000}ENTRANCE STRICTLY FORBIDDEN", 0xFFFFFFFF, 1537.7209,-1627.4091,13.3828, 50.0);
Re: Create3DTextLabel -
Aleksabre - 10.08.2015
I'm sorry, I have already done that, it was some misunderstanding when I've typed () instead of {}
It doesn't work. Could someone help me with another solution? Appreciated
Re: Create3DTextLabel -
M0HAMMAD - 10.08.2015
https://sampwiki.blast.hk/wiki/Create3DTextLabel
you must use colors in texts like
{FFFFFF} not
(#FFFFFF)
Re: Create3DTextLabel -
Aleksabre - 10.08.2015
Thank you, mohammad, it works.
Could you just tell me, the 0x000 colours;
http://www.nthelp.com/colorcodes.htm
This site won't help at all, I pick up the blue colour and it's black in-game, so I'm guessing the codes are incorrect coloured. Any other site, please?
Re: Create3DTextLabel -
Zens - 10.08.2015
Quote:
Originally Posted by Aleksabre
Thank you, mohammad, it works.
Could you just tell me, the 0x000 colours;
http://www.nthelp.com/colorcodes.htm
This site won't help at all, I pick up the blue colour and it's black in-game, so I'm guessing the codes are incorrect coloured. Any other site, please?
|
Remove the 0x and use the last six letters/numbers. White is 0xFFFFFF but would be {FFFFFF}
Re: Create3DTextLabel -
Beckett - 10.08.2015
Are you trying to create the Create3DTextLabel with an ingame command?
If so then you can't create it with the chatbox, as the chatbox automatically removes the illegal characters as '%' or hex (e.g: 0xFFFFFFFF) so use the dialog-input method instead.
Edit: Nevermind, that wasn't your question. ^^^
By the way, could you show us how the way you have done it now?
Re: Create3DTextLabel -
Aleksabre - 11.08.2015
Hello, thanks for your fast replies, it's fixed. Now I will know that "#" messed up the colour.

I hope I do not advertise or bother, but I hope for fix in here:
https://sampforum.blast.hk/showthread.php?tid=585086