CLEO Help help with chat color

CLEO related
Status
Not open for further replies.

0x73616D

Active member
Joined
Apr 18, 2021
Messages
135
Solutions
1
Reaction score
68
Location
0x73616D
Why does the color of the whole line change and not of an exact word?

(I tried several opcodes and still it didn't work)

C++:
{$CLEO .cs}
{$USE INI}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

0AF0: $Color[4] = get_int_from_ini_file "cleo\ini\Color_Dudas.ini" section "Settings" key "hex"

var
$Color array 6 of Integer
end

WHILE TRUE
WAIT 0

IF
0B61:  samp is_local_player_spawned
THEN
        0AC8: 2@ = allocate_memory_size 260
        0AC8: 3@ = allocate_memory_size 260
        0B75: samp get_chat_string 99 text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
        IF
        0C14: strcmp string1 2@ string2 "Frame Limiter: "
        THEN
            0B74: samp set_chat_string 99 text 2@ prefix 3@ color $Color[4] prefix_color 5@
            0BAE: samp 20@ = get_chat_info_ptr
            0C0D: struct 20@ offset 25562 size 4 = true
        END
    END
END
 

Attachments

  • adssadsaddasdas.png
    adssadsaddasdas.png
    2.3 KB · Views: 21
Last edited:
Status
Not open for further replies.
Top