GetPlayerColor >>> 8 returns 4 character instead of 6 sometimes - 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: GetPlayerColor >>> 8 returns 4 character instead of 6 sometimes (
/showthread.php?tid=534234)
GetPlayerColor >>> 8 returns 4 character instead of 6 sometimes -
Emre__ - 28.08.2014
Hello,
I'm using a system that includes users color in client messages. But some colors do not work very well. Example:
pawn Код:
printf("{%x}", 0x008000FF >>> 8); // returns {0080} which is NOT right, should return {008000}
printf("{%x}", 0xFF9900FF >>> 8); // returns {FF9900} which is right
Please do help me with the situation.
Re: GetPlayerColor >>> 8 returns 4 character instead of 6 sometimes -
Catalyst- - 28.08.2014
Re: GetPlayerColor >>> 8 returns 4 character instead of 6 sometimes -
Emre__ - 28.08.2014
Quote:
Originally Posted by Catalyst-
|
Thanks!