Hexadecimal save
#6

Try using this calculator for decimal to hex
Quote:

#define COL(%0,%1,%2,%3) (((%0 << 24)&0xFF000000) + ((%1<<16)&0xFF0000) + ((%2<< 8 )&0xFF00) + (%3))

Put it on top of your script for global use.
Here
%0 - RR
%1 - GG
%2 - BB
%3 - AA

Please check the parenthesis once more.

The use is like

Quote:

SendClientMessage(playerid,COL(255,255,255,255),"T his text is white");

Reply


Messages In This Thread
Hexadecimal save - by Kraeror - 15.09.2017, 20:52
Re: Hexadecimal save - by Vince - 15.09.2017, 20:55
Re: Hexadecimal save - by Kraeror - 15.09.2017, 20:58
Re: Hexadecimal save - by Vince - 15.09.2017, 21:18
Re: Hexadecimal save - by Kraeror - 16.09.2017, 10:32
Re: Hexadecimal save - by Silentx9 - 16.09.2017, 11:14
Re: Hexadecimal save - by Kraeror - 16.09.2017, 11:52
Re: Hexadecimal save - by Kraeror - 16.09.2017, 12:34

Forum Jump:


Users browsing this thread: 1 Guest(s)