Raised This Month: $ Target: $400
 0% 

DHooks (Dynamic Hooks - Dev Preview)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-07-2018 , 06:49   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #10

Quote:
Originally Posted by gubka View Post
Hello Guyz, anyone know how to fix that ?


PHP Code:
hDHookWeaponDropPost DHookCreate(DHook_WeaponDropHookType_EntityReturnType_VoidThisPointer_IgnoreWeaponDHookOnDropPost);
    
DHookAddParam(hDHookWeaponDropPostHookParamType_CBaseEntity);


I also tryed

hDHookWeaponDropPost 
DHookCreate(DHook_WeaponDropHookType_EntityThisPointer_CBaseEntityThisPointer_IgnoreWeaponDHookOnDropPost);
    
DHookAddParam(hDHookWeaponDropPostHookParamType_CBaseEntity); 

Also if i use that code in OnPluginStart I am not able to connect, but i didnt see any crash
DHookAddEntityListener(ListenType_Created, WeaponsOnCreated);
DHookAddEntityListener(ListenType_Deleted, WeaponsOnDeleted);

When i use them at MapStart Is OK

When i use only ListenType_Created, I am not able to connect

Game CS:GO what could be wrong?
Can you please post a complete testcase for debugging?

You can check if a parameter is NULL using the DHookIsNullParam native before trying to get its value.

Your second weapondrop hook try isn't using valid enums. Which dhooks version are you running exactly? Why don't you use sdkhooks which already provides both of these hooks?
__________________
Peace-Maker is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode