Code:
{$CLEO}
0000:
const
SYNCSTATE = 31@
end
repeat
wait 0
until 0AFA: is_samp_available
SYNCSTATE = true
0B34: samp register_client_command "tsync" to_label @togglesync
0BE1: raknet setup_outcoming_rpc_hook @syncmanager
0BE2: raknet setup_outcoming_packet_hook @syncmanager
0BDE: pause_thread 0
:togglesync
0B19: SYNCSTATE ^= true
if SYNCSTATE == true
then 0AF8: samp add_message_to_chat "UpSync: Enabled!" color 0xFF00FF00
else 0AF8: samp add_message_to_chat "UpSync: Disabled!" color 0xFFFF0000
end
0B43: samp cmd_ret
:syncmanager
0BE0: raknet hook_ret SYNCSTATE
why my game crashes?