PDA

Просмотр полной версии : Sampfuncs Problem


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/blob/master/samp/events/handlers.lua#L198 https://gitlab.com/blasthack/raksamp/-/blob/master/client/src/netgame.cpp#L127

kngsly
23.08.2022, 02:45
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/blob/master/samp/events/handlers.lua#L198 https://gitlab.com/blasthack/raksamp/-/blob/master/client/src/netgame.cpp#L127


Thanks father