CLEO Help Type wrong id.

CLEO related
Status
Not open for further replies.

Olcay

Active member
Joined
Dec 1, 2014
Messages
31
Reaction score
0
Hi Guys. I did a .cs file succesfully. Sanny doesn't give error and I saved it. I try it game but game freeze 2-3 second and later try keybind is not working.

Code:
{$CLEO .cs}
0000:


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY



WHILE TRUE
    WAIT 0
    IF
    0AB0:   key_pressed 78
    THEN
    REPEAT
        WAIT 0
    UNTIL 8AB0: 78
        IF
        0AD2: 5@ = player $PLAYER_CHAR targeted_actor
        THEN
            IF
            0B2B: samp 4@ = get_player_id_by_actor_handle 5@
            THEN
                0AF9: "/ke %d" 4@
                wait 300
                0AF9: "/ya %d" 4@
            END
        END
    END 
END
This is Opcode.eXe's codes.

https://www.youtube.com/watch?v=tccoKcBRTDU
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
Re: I'm getting crash.

Code:
{$CLEO}

0000: NOP

:Keybind
if and
 0AB0:   key_pressed 72
 0AD2: 1@ = player $PLAYER_CHAR targeted_actor
then
  0B2B: 0@ = get_player_id_by_actor_handle 1@
  0AF9: "/ke %d" 0@
  wait 500
  0AF9: "/ya %d" 0@
end
jump @keybind
 

WaTTi

Well-known member
Joined
Jan 4, 2015
Messages
260
Reaction score
8
Re: I'm getting crash.

Code:
{$CLEO}

0000: NOP

:Keybind
wait 0
if and
 0AB0:   key_pressed 72
 0AD2: 1@ = player $PLAYER_CHAR targeted_actor
then
  0B2B: 0@ = get_player_id_by_actor_handle 1@
  0AF9: "/ke %d" 0@
  wait 500
  0AF9: "/ya %d" 0@
end
jump @keybind
 

Olcay

Active member
Joined
Dec 1, 2014
Messages
31
Reaction score
0
Re: I'm getting crash.

I solve loading bar freeze problem but for now it don't type cmd and freeze for 2-3 second. :computer_guy:
 

KillerZ

Active member
Joined
Apr 6, 2014
Messages
73
Reaction score
0
Re: I'm getting crash.

Credits go to Springfield.

Code:
{$CLEO .cs}
0000: NOP

REPEAT
    WAIT 100
UNTIL 0AFA:

WHILE TRUE
    WAIT 0
    IF 0AD2: 0@ = $PLAYER_CHAR
    THEN
        0B2B: 1@ = playerId 0@  // Get Target Samp ID
        IF 0AB0: 78 // Change key
        THEN 0AF9: "/ke %i" 1@
        wait 300
        0AF9: "/ya %i" 1@
        wait 500
        END         
    END
END
 

Olcay

Active member
Joined
Dec 1, 2014
Messages
31
Reaction score
0
Re: I'm getting crash.

KillerZ link said:
Credits go to Springfield.

Code:
{$CLEO .cs}
0000: NOP

REPEAT
    WAIT 100
UNTIL 0AFA:

WHILE TRUE
    WAIT 0
    IF 0AD2: 0@ = $PLAYER_CHAR
    THEN
        0B2B: 1@ = playerId 0@  // Get Target Samp ID
        IF 0AB0: 78 // Change key
        THEN 0AF9: "/ke %i" 1@
        wait 300
        0AF9: "/ya %i" 1@
        wait 500
        END         
    END
END

Don't work. Game is very slow when I aim at someone  :sadpepe:
 

Olcay

Active member
Joined
Dec 1, 2014
Messages
31
Reaction score
0
Re: I'm getting crash.

I solved all bug and crash problem but for now it type /ke %i and /ya %i . Don't type targeted actor's id.

I'm sure killer.

Edit: I solved my problem. Thanks for everything. Lock please.
 
Status
Not open for further replies.
Top