I realized that when the hex color code starts from 0x0_ _ _ _ _, unfortunately, the bug I put in the previous comment will be created.
const
_BLUE = 0x0000FF
end
chatmsg "{%x}Test blue color" -1 _BLUE
The output will be like this > {FF}Test blue color
kinda buggy
Code:
{$CLEO}
{$CLEO .cs}
//----MAIN----
03A4: name_thread "test"
0001: wait 609 ms
0B34: samp register_client_command "test" to_label @test
const
_WHITE = 0xFFFFFF
_RED = 0xFF0000
_YELLOW = 0xFFFF1A
_BLACK = 0x141414
_BLUE = 0x8C1AFF
_ORANGE = 0xFF8C1A
_SFSI = 0x11FF82
_PD = 0x1E519D
_NEWS = 0xC2A2DA
end
:looper
0001: wait 0 ms
0002: jump @looper
:test
chatmsg "{%x}Test red color, {%x}Test blue color, {%x}Test white color." -1 _RED _YELLOW _WHITE
chatmsg "{%x}Test BLACK color, {%x}Test BLUE color, {%x}Test ORANGE color." -1 _BLACK _BLUE _ORANGE
chatmsg "{%x}Test SI color, {%x}Test PD color, {%x}Test NEWS color." -1 _SFSI _PD _NEWS
0B43: samp cmd_ret
Output:
Anyway thanks,
the main problem solved.