ANTICHAT

ANTICHAT (https://forum.antichat.xyz/index.php)
-   Общие вопросы программирования (https://forum.antichat.xyz/forumdisplay.php?f=206)
-   -   Sampfuncs Problem (https://forum.antichat.xyz/showthread.php?t=1446619)

kngsly 22.08.2022 17:26

Every time when i hook the incoming onfoot packet, players onfoot structure is somehow corrupted. Why?

I tried to print player health, armour or anything from player stOnFootData structure , but everything is printed wrongly.

https://forum.antichat.xyz/attachments/28122724/

1661174620267.pngkngsly · 22 Авг 2022 в 16:26' data-fancybox="lb-post-1122724" data-lb-caption-extra-html="" data-lb-sidebar-href="" data-single-image="1" data-src="https://www.blast.hk/attachments/164309/" style="cursor: pointer;" title="1661174620267.png">
https://forum.antichat.xyz/attachments/28122724/

On aim and bullet, works good.

https://forum.antichat.xyz/attachments/28122724/

FYP 22.08.2022 18:29

player sync packets sent by the server aren't just plain struct so you can't read it that way. here are examples how to read it right: https://github.com/THE-FYP/SAMP.Lua/...dlers.lua#L198 https://gitlab.com/blasthack/raksamp...tgame.cpp#L127

kngsly 23.08.2022 02:45

Цитата:

Сообщение от FYP

player sync packets sent by the server aren't just plain struct so you can't read it that way. here are examples how to read it right: https://github.com/THE-FYP/SAMP.Lua/...dlers.lua#L198 https://gitlab.com/blasthack/raksamp...tgame.cpp#L127

Thanks father


Время: 16:33