Hexcolor-codes in Textdraws
#1

Hi,

is it possible to use Hex-codes in textdraws?
For example:

TextDrawSetString(website, "{FFA65D}www.{FF0000}txp.mysamp{FFA65D}.de");

- Tim
Reply
#2

Why don't you test it for yourself ?
Reply
#3

Quote:
Originally Posted by detter
Посмотреть сообщение
Why don't you test it for yourself ?
Very helpful.....

OT I think so. (though this wasn't helpful too lol)
Reply
#4

I tested it but it doesnt work. I started this thread in hope that somebody know a way to do this.
Reply
#5

Quote:
Originally Posted by BlacK_RiDeR
Посмотреть сообщение
If You Tested then it will not come u can use lyk this ~r~ , ~b~ etc ....
Dude, it's used for GameText.
pawn Код:
GameTextForPlayer(playerid, "~r~ Red", 2000, 1);
Reply
#6

These work for textdraws as well.
Reply
#7

Yes, but i want other colors. ~r~ and ~blue~ etc. are so boring
Reply
#8

Quote:
Originally Posted by Timmeyable
Посмотреть сообщение
Yes, but i want other colors. ~r~ and ~blue~ etc. are so boring
You can use y_colours it has many many colours.
Reply
#9

Other question:

How to convert (example) 0xFF0000FF in FF0000?
Without the 0x and the FF in the end.

EDIT:

I want to get the color of a player and use this in a string

new color;
color = GetPlayerColor(playerid);
-Konvert-
"Bla bla {converted color} bla bla bla"

- Tim
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)