SA-MP Forums Archive
Explaining how to transffm hexa to samp color code - 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: Explaining how to transffm hexa to samp color code (/showthread.php?tid=658959)



Explaining how to transffm hexa to samp color code - Zeus666 - 17.09.2018

Hi. How can I transcript the

"ff3e25" into color like "0x33CCFF00"

?


Re: Explaining how to transffm hexa to samp color code - Undef1ned - 17.09.2018

"0xff3e25FF"?


Re: Explaining how to transffm hexa to samp color code - Zeus666 - 17.09.2018

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
"0xff3e25FF"?
Oh. How can I set like a "shadow" to be black?


Re: Explaining how to transffm hexa to samp color code - Undef1ned - 17.09.2018

So that the color is black?


Re: Explaining how to transffm hexa to samp color code - Zeus666 - 17.09.2018

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
So that the color is black?
The color is this

but i would like to put a black shadow on it or to be bold.


Re: Explaining how to transffm hexa to samp color code - Undef1ned - 17.09.2018

That is not possible


Re: Explaining how to transffm hexa to samp color code - iLearner - 17.09.2018

Its possible, I had done it a few years ago using sscanf. And I don't remember right now how.


Re: Explaining how to transffm hexa to samp color code - Dayrion - 17.09.2018

Quote:
Originally Posted by Zeus666
Посмотреть сообщение
Hi. How can I transcript the

"ff3e25" into color like "0x33CCFF00"

?
This is not the same color uh. What are you trying to do? Adding the Alpha value?


Re: Explaining how to transffm hexa to samp color code - Undef1ned - 17.09.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
Its possible, I had done it a few years ago using sscanf. And I don't remember right now how.
Add shadow to a color?


Re: Explaining how to transffm hexa to samp color code - Dayrion - 17.09.2018

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
Add shadow to a color?
There is an only alpha value reserved to transprency on SAMP. :https://sampwiki.blast.hk/wiki/Colors_List