CLEO Help cmd problem

CLEO related
Status
Not open for further replies.

ffsffff

Member
Joined
Apr 13, 2019
Messages
7
Reaction score
1
What's wrong here?
Code:
:cmd_66
SAMP.IsCommandTyped(20@)
if
0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/su %s" 1@

else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end

wait 30
if
 SAMP.Available
else_jump @cmd_66

while true
wait 0
        wait 1000
        0B4E: samp 1@ = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active 1@
        then
            0B49: samp set_current_dialog_list_item 7
            0B47: samp close_current_dialog_with_button 1
        end
    end

SAMP.CmdRet()

I want when i type /ca to be typed /su id, after that will be showed a dialog by the server and i want to select item 7 than pressing button 1.
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
PHP:
{$CLEO .cs}
0000: NOP

repeat
wait 0
until 0afa:
0B34: "ca" @cmd_66

while true
wait 0
    if and
        0@ == true
        0B4C:  samp is_dialog_active -1
    then
        0B49: samp set_current_dialog_list_item 7
        0B47: samp close_current_dialog_with_button 1
        0@ = false
    end
end


:cmd_66
if and
    SAMP.IsCommandTyped(20@)
    0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/su %s" 1@
    0@ = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()
 

ffsffff

Member
Joined
Apr 13, 2019
Messages
7
Reaction score
1
PHP:
{$CLEO .cs}
0000: NOP

repeat
wait 0
until 0afa:
0B34: "ca" @cmd_66

while true
wait 0
    if and
        0@ == true
        0B4C:  samp is_dialog_active -1
    then
        0B49: samp set_current_dialog_list_item 7
        0B47: samp close_current_dialog_with_button 1
        0@ = false
    end
end


:cmd_66
if and
    SAMP.IsCommandTyped(20@)
    0AD4: 20@ = scan_string 20@ format "%d" 21@
then
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/su %s" 1@
    0@ = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()


not working...
 

[RP]Foolish

Active member
Joined
Mar 18, 2020
Messages
68
Reaction score
36
Location
sea
PHP:
{$CLEO .cs}
0000: NOP

repeat
wait 0
until 0afa:
0B34: "ca" @cmd_66

while true
wait 0
    if and
        0@ == true
        0B4C:  samp is_dialog_active -1
    then
        0B49: samp set_current_dialog_list_item 7
        0B47: samp close_current_dialog_with_button 1
        0@ = false
    end
end


:cmd_66                                                                         
if and
    SAMP.IsCommandTyped(20@)
    0AD4: $NOT_USED = scan_string 20@ format "%d" 21@
then
    alloc 1@ 60
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/su %s" 1@
    free 1@
    0@ = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()
 

ffsffff

Member
Joined
Apr 13, 2019
Messages
7
Reaction score
1
PHP:
{$CLEO .cs}
0000: NOP

repeat
wait 0
until 0afa:
0B34: "ca" @cmd_66

while true
wait 0
    if and
        0@ == true
        0B4C:  samp is_dialog_active -1
    then
        0B49: samp set_current_dialog_list_item 7
        0B47: samp close_current_dialog_with_button 1
        0@ = false
    end
end


:cmd_66                                                                        
if and
    SAMP.IsCommandTyped(20@)
    0AD4: $NOT_USED = scan_string 20@ format "%d" 21@
then
    alloc 1@ 60
    0B36: samp 1@ = get_player_nickname 21@
    0AF9: samp say_msg "/su %s" 1@
    free 1@
    0@ = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()

nah, not working. is typing /su id then is dialog showed by the server but not happens nothing from here
 

KamikazeSripterul

Well-known member
Joined
Jun 30, 2019
Messages
353
Reaction score
23
You just said 'whats wrong here'.. explain your script and what its supposed to do as well as bring video / screenshot to make thing clearer to what you're trying to do.
 
Status
Not open for further replies.
Top