Embedded colour codes with format();
#1

Hi all,

I've been looking all over for how to do this, but cant seem to find anything anywhere to help me crack it. I'm trying to embed colour codes into a string using format. My code is below:

Код:
#define EMBED_WHITE "{FFFFFF}"
#define EMBED_WHITESMOKE "{F5F5FF}"

format(string, sizeof(string), "%x%s: %x%s",EMBED_WHITE, fullName(playerid, false), EMBED_WHITESMOKE, text);
However, unfortunately it's just outputting like below:



Any ideas? Thanks
Reply


Messages In This Thread
Embedded colour codes with format(); - by Jonesy96 - 06.07.2016, 18:20
Re: Embedded colour codes with format(); - by Stinged - 06.07.2016, 18:23
Re: Embedded colour codes with format(); - by AbyssMorgan - 06.07.2016, 18:23
Re: Embedded colour codes with format(); - by SickAttack - 06.07.2016, 18:24
Re: Embedded colour codes with format(); - by Farzam - 06.07.2016, 18:25
Re: Embedded colour codes with format(); - by Jonesy96 - 06.07.2016, 18:27
Re: Embedded colour codes with format(); [NEW ISSUE] - by Jonesy96 - 06.07.2016, 18:36
Re: Embedded colour codes with format(); - by SickAttack - 06.07.2016, 18:40
Re: Embedded colour codes with format(); - by WrathOfGenesis - 07.07.2016, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)