Hex to ARGB
#1

Hi,

I need simple function which converts hex to argb.
Reply
#2

in a command in const use { } with color html in ******
example:
SendClientMessage(playerid, COLOR_RED,"{ff0000} hi bro {AAEE00}how are you ?");
Reply
#3

The hexadecimal number system is often used to represent colors in a fairly interpretable format. But "hex" isn't a thing in itself. Your question is therefore ambiguous. What you want is probably this:
PHP код:
RGBAToARGB(color)
{
    new 
alpha color 0xFF;
    return ((
color >>> 8) | (alpha << 24));

Reply
#4

When i use string i get argument type mismatch (argument 1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)