CLEO Help Game crashed

CLEO related
Status
Not open for further replies.

Carps

Member
Joined
Aug 4, 2013
Messages
15
Reaction score
0
Hello, why crash my game when I pressed the key "O"?

Code:
{$CLEO .cs}
0000:
REPEAT
    WAIT 10000
UNTIL 0AFA:  SAMP_IS_READY
WHILE TRUE
    WAIT 0

IF
0AB0: key_pressed 79
THEN
    0ACD: show_text_highpriority "LETS ~g~GO!" time 2000 
    FOR 1@ = 0 TO 1000
        0AB1: call @SendFakeBulletShot 1 HitID 1@
    END     
END


END //WHILE END
:SendFakeBulletShot
0B20: samp 9@ = actor_handle_by_samp_player_id 0@
Actor.StorePos($PLAYER_ACTOR, 10@ 11@ 12@)
Actor.StorePos(9@, 13@ 14@ 15@)

0AC8: 5@ = allocate_memory_size 39
0C0D: struct 5@ offset 0 size 1 = 1
0C0D: struct 5@ offset 1 size 2 = 0@

0C0D: struct 5@ offset 3 size 4 = 10@
0C0D: struct 5@ offset 7 size 4 = 11@
0C0D: struct 5@ offset 11 size 4 = 12@
0C0D: struct 5@ offset 15 size 4 = 13@
0C0D: struct 5@ offset 19 size 4 = 14@
0C0D: struct 5@ offset 23 size 4 = 15@
0C0D: struct 5@ offset 27 size 4 = 0.0
0C0D: struct 5@ offset 31 size 4 = 0.0
0C0D: struct 5@ offset 35 size 4 = 0.0

0B3D: raknet 6@ = new_bit_stream
0B40: raknet bit_stream 6@ write 224 type 0 size 1
0B40: raknet bit_stream 6@ write 5@ type 5 size 39
0B8B: raknet send bit_stream 6@
0B3E: raknet delete_bit_stream 6@
0AC9: free_allocated_memory 5@
0AB2: ret 0
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Doesn't crash me, but hangs the game for a few seconds doesn't work either when I press O in-game.
 
Status
Not open for further replies.
Top