SA-MP Forums Archive
Really Need To Know ;) +REP - 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: Really Need To Know ;) +REP (/showthread.php?tid=501034)



.......... - amirab - 16.03.2014

thanks all finished i found it
Thanks


Re: Really Need To Know ;) +REP - UnknownOwner - 16.03.2014

You mean:
Код:
0xFFFFFF00
This to
Код:
{FFFFFF00}



Re: Really Need To Know ;) +REP - amirab - 16.03.2014

no man {FFFFFF00} this is wrong it should be 6 char
00 should be delete but i want to know how can i use it in gamemode (script)


Re: Really Need To Know ;) +REP - Aliassassin123456 - 16.03.2014

"{RRGGBB}"


Re: Really Need To Know ;) +REP - amirab - 16.03.2014

yes i know but ,
NO ONE KNOW HOW TO CONVERT IT TO EMBED?! ?! !?


Re: Really Need To Know ;) +REP - MythicalMarauder - 16.03.2014

See this site: http://www.colorhexa.com/color-names

You can remove the '#' and replace it with '{' and '}' at the end.
Example:
#e3dac9 -> {e3dac9}




Re: Really Need To Know ;) +REP - amirab - 16.03.2014

Oh my god i don't mean thiiiis
i mean how to convert it in my script
yes i know in others site i can , too
but how can i do it in script and get a output


Re: Really Need To Know ;) +REP - MythicalMarauder - 16.03.2014

Ugh. You don't need converting, and you don't need to define the code I gave you.
Example:
format(str,sizeof(str), "%s(%d): {e3dac9}%s", pName, playerid, text[1]);

Do you get it now? -.-


Re: Really Need To Know ;) +REP - Aliassassin123456 - 16.03.2014

Quote:
Originally Posted by amirab
Посмотреть сообщение
Oh my god i don't mean thiiiis
i mean how to convert it in my script
yes i know in others site i can , too
but how can i do it in script and get a output
So say this: I need a function to convert RGBA color format to Color Embedding format Nab


Re: Really Need To Know ;) +REP - amirab - 16.03.2014

ok I need a function to convert RGBA color format to Color Embedding format