Crasher error

FALADAOdoCV

Новичок
Автор темы
2
0
Версия SA-MP
  1. 0.3.7 (R1)
I have a problem when I compile this hack and open gta, it closes and a crash message appears.

Codig:

{$CLEO .cs}
{$INCLUDE SF}

0662: "TAKTAK26"
0662: "CrasherV1"

if not 0@ = SAMP.Base()
then 0A93: end_custom_thread
end

while not SAMP.Available()
wait 100
end

0B34: samp register_client_command "crasher" to_label @CRasher
0BE2: raknet setup_outcoming_packet_hook @out_crasher

0BDE: pause_thread 0@

:crasher
0B2A: samp 33@ = get_player_ping 33@
if
0AD4: 4@ = scan_string 20@v format "%d" 5@ 6@ 7@
then
0B20: samp 22@ = actor_handle_by_samp_player_id 22@
if and
056D: actor 0@ defined
0564: heli 33@ simulate_crash_landing
then
if
00DF: actor $PLAYER_ACTOR driving
then
0564: heli 33@ simulate_crash_landing
04C4: store_coords_to 5@ 6@ 7@ from_actor 12@ with_offset -1999.9999 9999.9999 9999.9999
25@ = 2.0
26@ = 1.0
005B: 5@ += 25@
005B: 6@ += 26@
16@ = 1
call @incar 3 4@ 5@ 6@
wait 10
0564: heli 33@ simulate_crash_landing
04C4: store_coords_to 4@ 5@ 6@ from_actor 12@ with_offset -1999.9999 9999.9999 9999.9999
25@ = 2.0
26@ = 1.0
005B: 5@ += 25@
005B: 6@ += 26@
call @incar 3 4@ 5@ 6@
0B2B: samp 3@ = get_player_id_by_actor_handle 12@
0B36: samp 5@ = get_player_nickname 3@
0AD1: show_formatted_text_highpriority "[BARZO]: %s[%d]" time 500 5@ 3@
wait 1000
16@ = 0
else
0564: heli 33@ simulate_crash_landing
04C4: store_coords_to 4@ 5@ 6@ from_actor 12@ with_offset -1999.9999 9999.9999 9999.9999
25@ = 3.0
26@ = 1.0
005B: 5@ += 25@
005B: 6@ += 26@
15@ = 1
call @onFoot 3 4@ 5@ 6@
wait 10
0564: heli 33@ simulate_crash_landing
04C4: store_coords_to 4@ 5@ 6@ from_actor 12@ with_offset -1999.9999 9999.9999 9999.9999
25@ = 3.0
26@ = 1.0
005B: 5@ += 25@
005B: 6@ += 26@
call @onFoot 3 4@ 5@ 6@
0B2B: samp 3@ = get_player_id_by_actor_handle 12@
0B36: samp 5@ = get_player_nickname 3@
0AD1: show_formatted_text_highpriority "[BARZO]: %s[%d]" time 500 5@ 3@
wait 1000
15@ = 0
end
end
end
samp.CmdRet()

:incar
0B2B: samp 9@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0564: heli 33@ simulate_crash_landing
0AC8: 10@ = allocate_memory_size 63
0BBB: samp store_player 9@ incar_data 10@
0C0D: struct 10@ offset 24 size 4 = 0@
0C0D: struct 10@ offset 28 size 4 = 1@
0C0D: struct 10@ offset 32 size 4 = 2@
0C0D: struct 10@ offset 36 size 4 = 0.0
0C0D: struct 10@ offset 40 size 4 = -90.0
0C0D: struct 10@ offset 44 size 4 = 0.1
0C0D: struct 1@ offset 0x10 size 4 = 0@
0C0D: struct 1@ offset 0x20 size 4 = 0@
0C0D: struct 1@ offset 0x35 size 4 = 0@
0BC1: samp send_incar_data 10@
0AC9: free_allocated_memory 10@
0AB2: ret 0

:onfoot
0B2B: samp 9@ = get_player_id_by_actor_handle $PLAYER_ACTOR
0564: heli 33@ simulate_crash_landing
0AC8: 10@ = allocate_memory_size 68
0BBA: samp store_player 9@ onfoot_data 10@
0C0D: struct 10@ offset 6 size 4 = 0@
0C0D: struct 10@ offset 10 size 4 = 1@
0C0D: struct 10@ offset 14 size 4 = 2@
0C0D: struct 10@ offset 38 size 4 = 0.0
0C0D: struct 10@ offset 42 size 4 = -50.0
0C0D: struct 10@ offset 46 size 4 = 0.1
0C0D: struct 10@ offset 66 size 2 = 0
0C0D: struct 1@ offset 0x10 size 4 = 0@
0C0D: struct 1@ offset 0x20 size 4 = 0@
0C0D: struct 1@ offset 0x35 size 4 = 0@
0BC0: samp send_onfoot_data 10@
0AC9: free_allocated_memory 10@
0AB2: ret 0

:out_crasher
0564: heli 33@ simulate_crash_landing
if and
15@ == 1
0@ == PACKET_PLAYER_SYNC
then
0BE0: raknet hook_ret false
else
0BE0: raknet hook_ret true
end
if and
16@ == 1
0@ == PACKET_VEHICLE_SYNC
then
0BE0: raknet hook_ret false
else
0BE0: raknet hook_ret true
end