Customizing colors in SendClientMessage
#10

Quote:
Originally Posted by Elie1996
Посмотреть сообщение
Hey could you explain two the line of format for me?
I don't understand what ">>> 8" means, nor the {%06x}

also, just to be sure, what do u assume you exactly have in array hex[]? Only the code of the colors correct?
Thanks for replying!
hex[] = variable passed to the function
{%06x} = placeholder for hexadecimal values, the 6 ensures that the output string will always be six characters long and the 0 will pad it with zeros if it's not
>>> 8 = logical right shift to remove the alpha value (transparent: two last characters)

https://sampwiki.blast.hk/wiki/Colors_List
Reply


Messages In This Thread
Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 20:13
Re: Customizing colors in SendClientMessage - by DRIFT_HUNTER - 04.07.2016, 20:36
Re: Customizing colors in SendClientMessage - by Mencent - 04.07.2016, 20:41
Re: Customizing colors in SendClientMessage - by Stinged - 04.07.2016, 21:12
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 21:15
Re: Customizing colors in SendClientMessage - by Stinged - 04.07.2016, 21:33
Re: Customizing colors in SendClientMessage - by SickAttack - 04.07.2016, 21:34
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 23:25
Re: Customizing colors in SendClientMessage - by Elie1996 - 04.07.2016, 23:27
Re: Customizing colors in SendClientMessage - by SickAttack - 05.07.2016, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)