Thread: CollisionHook
View Single Post
HarryPotter
Veteran Member
Join Date: Sep 2017
Location: Taiwan, Asia
Old 11-25-2019 , 05:51   Re: CollisionHook
Reply With Quote #104

Quote:
Originally Posted by Spirit_12 View Post
This is my understanding from what I read of Peace-Maker's reply. You are to store the entity data in pre hook phase as opposed to using DHookGetParam in post hook.

I don't have a windows server running, so this is an untested version, but it should work.
still crash after few seconds I join the server.

I try to check if a parameter is NULL using the DHookIsNullParam in pre-hook and post-hook, it works without any errors
but still cause windows server crash, I guess windows is pretty complicated
PHP Code:
 if(DHookIsNullParam(hParams1) || DHookIsNullParam(hParams2)) return MRES_Ignored
__________________

Last edited by HarryPotter; 11-25-2019 at 05:52.
HarryPotter is offline