Возникла проблема с хуком чекпоинта.
Что-то написал, но при запуске крашит.
Проблема частично решена, теперь не крашит, но и не выводит нужные координаты. Пишет "D D D"
Что-то написал, но при запуске крашит.
{$CLEO}
{$INCLUDE SF}
0001: wait 0 ms
0BE3: raknet setup_incoming_rpc_hook @in_rpc
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRSETCHECKPOINT
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
if 0@ == RPC_SCRSETCHECKPOINT
then
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 4@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 5@ = bit_stream_read 1@ type BS_TYPE_BYTE
0AF8: samp add_message_to_chat "X:%d Y:%d Z:%d" color -1 params 2@ 3@ 4@
end
end
{$INCLUDE SF}
0001: wait 0 ms
0BE3: raknet setup_incoming_rpc_hook @in_rpc
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRSETCHECKPOINT
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
if 0@ == RPC_SCRSETCHECKPOINT
then
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 4@ = bit_stream_read 1@ type BS_TYPE_BYTE
0BE7: raknet 5@ = bit_stream_read 1@ type BS_TYPE_BYTE
0AF8: samp add_message_to_chat "X:%d Y:%d Z:%d" color -1 params 2@ 3@ 4@
end
end
{$CLEO}
{$INCLUDE SF}
0001: wait 0 ms
while not SAMP.Available()
wait 400
end
0BE3: raknet setup_incoming_rpc_hook @in_rpc
0BDE: pause_thread 0
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRSETRACECHECKPOINT
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
if 0@ == RPC_SCRSETRACECHECKPOINT
then
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 4@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 5@ = bit_stream_read 1@ type BS_TYPE_SHORT
0AF8: samp add_message_to_chat "X: %d Y: %d Z: %d" color -1 params 2@ 3@ 4@
end
end
0BE0: raknet hook_ret true
{$INCLUDE SF}
0001: wait 0 ms
while not SAMP.Available()
wait 400
end
0BE3: raknet setup_incoming_rpc_hook @in_rpc
0BDE: pause_thread 0
:in_rpc
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRSETRACECHECKPOINT
then
0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
if 0@ == RPC_SCRSETRACECHECKPOINT
then
0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 4@ = bit_stream_read 1@ type BS_TYPE_SHORT
0BE7: raknet 5@ = bit_stream_read 1@ type BS_TYPE_SHORT
0AF8: samp add_message_to_chat "X: %d Y: %d Z: %d" color -1 params 2@ 3@ 4@
end
end
0BE0: raknet hook_ret true
Последнее редактирование: