CLEO Help Simple script not working

CLEO related
Status
Not open for further replies.

Husnain

Well-known member
Joined
May 20, 2016
Messages
228
Reaction score
9
Location
Mars
Code:
{$CLEO .cs}
0000:

:TEXT
wait 0
alloc 10@ 1024
alloc 11@ 1024
SAMP.GetChatString(99, 10@, 11@, 12@, 13@)
if
  0C18: $FREE = strstr string1 10@ string2 "Husnain: hello"
jf @TEXT
wait 100
say "Hi"
free 10@
free 11@
jump @TEXT

I want to detect "Hello" message but the script is crashing. Any clue?
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
PHP:
{$CLEO .cs}
0000:
repeat
Wait 0
until 0AFA:

0AC8: 1@ = allocate_memory_size 260
0AC8: 2@ = allocate_memory_size 260


        while true
            wait 0
            0B75: samp get_chat_string 99 text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
            if
            0C18: $NOT_USED = strstr string1 1@ string2 "Husnain: hello"
            then
                wait 100
                say "Hi"
            end 
        end
 
Status
Not open for further replies.
Top