CLEO Help How to find this?

CLEO related
Status
Not open for further replies.

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
I'm trying to change the color on a render text but i cant.

I have this: 0xFFF00000 = red color

I know that is hex code but when i change it on the CLEO, the text doesn't appears. I use a colour creator for pawno, they are the same i think.

For example i change on the program to green colour, and i have this:

0x00FF00FF = green color

But when i change that on the code the text doesn't appear.

Code:
{$CLEO .cs}
0000:
REPEAT
    WAIT 0
UNTIL 0AFA: SAMP IS READY

0B6D: 31@ CREATE_FONT "BigText" HEIGHT 20 FLAGS 0x4
10@ = 400
11@ = 400

WHILE TRUE
WAIT 0
    0AC8: 0@ = allocate_memory_size 260
    0209: 1@ = random_int_in_ranges 1 9999
    0AD3: 0@ = "PEPEELPUBERO %d" 1@
    0B6F: FONT 31@ draw_text 0@ pos 10@ 11@ color 0x00FF00FF
    0AC9: free_allocated_memory 0@
    IF
    0B21: 	samp is_chat_opened
    THEN
        0B5E: get_cursor_pos 10@ 11@
        0AD1: show_formatted_text_highpriority "TEXTPOS: %d x %d" time 100 10@ 11@
    END
END
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
272
It's ARGB, so first value should be FF(255) always. 0x (A)FF (R)FF (G)00 (B)00 = red

0xFFFFFFFF = white
0xFFFF0000 = red
0xFF00FF00 = green
0xFF0000FF = blue
0xFF000000 = black
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
springfield link said:
It's ARGB, so first value should be FF(255) always. 0x (A)FF (R)FF (G)00 (B)00 = red

0xFFFFFFFF = white
0xFFFF0000 = red
0xFF00FF00 = green
0xFF0000FF = blue
0xFF000000 = black

Thanks, solved, lock the post if you want.
 
Status
Not open for further replies.
Top