CLEO Help AUTO-PRESS on dialog

CLEO related
Status
Not open for further replies.

pai1ne13

Active member
Joined
Jan 2, 2019
Messages
59
Reaction score
4
Hello guys, i have a problem.I want this cleo , when i type in chat command "/chelp" they will trype in chat "/clan" and select from dialog item with name "Clan Help"
Code:
{$CLEO .cs}

0000: NOP
0b34: "chelp" @chelp

wait 10000

WHILE TRUE
WAIT 0
IF 1@ == true
then
0af9: "/clan"
if
    0B4C:  samp is_dialog_active -1 
    THEN
       
        alloc 0@ 260 
        0BD8: samp get_dialog_caption 0@ 
        IF
        0C29: $NOT_USED = stristr string1 0@ string2 "Clan" 
        THEN
            0B49: samp set_current_dialog_list_item 0 
            0B47: samp close_current_dialog_with_button 1
            wait 5000
            1@ == false 

End
end
End
:chelp 
1@ == true

SAMP.CmdRet()
 

Attachments

  • Screenshot (292).png
    Screenshot (292).png
    101.3 KB · Views: 30
Last edited:

Zin

Expert
Joined
Aug 1, 2013
Messages
1,690
Reaction score
104
"1@ == TRUE" in label ":CHELP" and also after the "WAIT 5000" is the problem, needs to be just "=" I make this mistake all the time.
 
Status
Not open for further replies.
Top