help scan string

Status
Not open for further replies.

davidel

Well-Known Member
Joined
Jan 17, 2020
Messages
128
Likes
2
Points
18
Location
Germania
#1
Code:
{$CLEO .cs}

0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:


WHILE TRUE
wait 0
if
    0C5D: samp textdraw 6 is_exists
THEN
wait 10000     
      0AF8: samp add_message_to_chat "sss" color 0xFFFFFF
END
end
i want to make when it will add "sss" message to chat to say "aaa". how? i tried with this but it's not detecting 0AF8: samp add_message_to_cha
i need with 0AF8: samp add_message_to_chat or chatmsg..
Code:
{$CLEO}
{$INCLUDE SF}
0000:
thread "TaxiCMD"

repeat
wait 0
until SAMP.Available()

chatmsg "cv" -1

0BE3: raknet setup_incoming_rpc_hook @loading

WHILE TRUE
WAIT 0

    IF [email protected] == 1
    THEN
        wait 100
      say "aaa"
 [email protected] = 0
    END
        
END

:loading
0BE5: raknet [email protected] = get_hook_param PARAM_PACKETID
IF [email protected] == RPC_ScrClientMessage
THEN 
    alloc [email protected] 129
    0C11: memset destination [email protected] value 0 size 129
    0BE5: raknet [email protected] = get_hook_param PARAM_BITSTREAM
    0BE7: raknet [email protected] = bit_stream_read [email protected] type BS_TYPE_INT //color
    0BE7: raknet [email protected] = bit_stream_read [email protected] type BS_TYPE_INT //lenght
    0BE8: raknet bit_stream [email protected] read_array [email protected] size [email protected] //string
    0C0D: struct [email protected] offset [email protected] size 1 = 0
    
    IF 0C18: $NOT_STRING = strstr string1 [email protected] string2 "sss"
    THEN
        //NOP
        [email protected] = 1
    END
    
    free [email protected]
END
0BE0: raknet hook_ret true
 
Status
Not open for further replies.
Top