cmd problem

Status
Not open for further replies.
Joined
Apr 13, 2019
Messages
7
Likes
1
Points
3
#1
What's wrong here?
Code:
:cmd_66
SAMP.IsCommandTyped([email protected])
if
0AD4: [email protected] = scan_string [email protected] format "%d" [email protected]
then
    0B36: samp [email protected] = get_player_nickname [email protected]
    0AF9: samp say_msg "/su %s" [email protected]

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 [email protected] = get_current_dialog_id
        if
            0B4C:  samp is_dialog_active [email protected]
        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.
 
Joined
Mar 18, 2020
Messages
19
Likes
5
Points
3
Location
Brazil
1
#2
PHP:
{$CLEO .cs}
0000: NOP

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

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


:cmd_66
if and
    SAMP.IsCommandTyped([email protected])
    0AD4: [email protected] = scan_string [email protected] format "%d" [email protected]
then
    0B36: samp [email protected] = get_player_nickname [email protected]
    0AF9: samp say_msg "/su %s" [email protected]
    [email protected] = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()
 
OP
OP
F
Joined
Apr 13, 2019
Messages
7
Likes
1
Points
3
#3
PHP:
{$CLEO .cs}
0000: NOP

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

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


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

not working...
 
Joined
Mar 18, 2020
Messages
19
Likes
5
Points
3
Location
Brazil
1
#4
PHP:
{$CLEO .cs}
0000: NOP

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

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


:cmd_66                                                                         
if and
    SAMP.IsCommandTyped([email protected])
    0AD4: $NOT_USED = scan_string [email protected] format "%d" [email protected]
then
    alloc [email protected] 60
    0B36: samp [email protected] = get_player_nickname [email protected]
    0AF9: samp say_msg "/su %s" [email protected]
    free [email protected]
    [email protected] = true
else
    print "~y~/ca <id>" 2000 //cop attack = 7 listitem
end
samp.CmdRet()
 
OP
OP
F
Joined
Apr 13, 2019
Messages
7
Likes
1
Points
3
#5
PHP:
{$CLEO .cs}
0000: NOP

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

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


:cmd_66                                                                        
if and
    SAMP.IsCommandTyped([email protected])
    0AD4: $NOT_USED = scan_string [email protected] format "%d" [email protected]
then
    alloc [email protected] 60
    0B36: samp [email protected] = get_player_nickname [email protected]
    0AF9: samp say_msg "/su %s" [email protected]
    free [email protected]
    [email protected] = 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
325
Likes
25
Points
33
#8
Try cleo 4.1 and sf 5.4.1.. Those are the ones i use and they work perfectly. It may also be from your samp / gta version.
 

KamikazeSripterul

Well-Known Member
Joined
Jun 30, 2019
Messages
325
Likes
25
Points
33
#14
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