format bug ( hexadecimal numbers )
#1

Hi.

I'm try to send message/show dialog with player color, and this is the result:
Click


pawn Code:
#define XCOLOR_RED              FF0000

format(i_str, sizeof(i_str), "My Color:{%06x} %x{" #XCOLOR_RED "} | {%06x}%d", GetPlayerColor(player1) >>> 8, GetPlayerColor(player1), GetPlayerColor(player1) >>> 8, GetPlayerColor(player1));
Edit: This bug was fixed in 0.3c R5. Too late, but thanks for fix it
Reply


Messages In This Thread
format bug ( hexadecimal numbers ) - by kurta999 - 10.07.2011, 19:49
Re: format bug ( hexadecimal numbers ) - by Virtual1ty - 10.07.2011, 20:13
Re: format bug ( hexadecimal numbers ) - by Macluawn - 10.07.2011, 20:15
Re: format bug ( hexadecimal numbers ) - by Virtual1ty - 10.07.2011, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)