Raised This Month: $51 Target: $400
 12% 

DHooks (Dynamic Hooks - Dev Preview)


Post New Thread Reply   
 
Thread Tools Display Modes
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 06-30-2016 , 05:21   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #461

You might want to replace this:
Code:
public __ext_dhooks_SetNTVOptional()
With this:
Code:
public void __ext_dhooks_SetNTVOptional()
In the .inc file, so #pragma newdecls required won't error at DHooks.
__________________
retired
shavit is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-30-2016 , 05:41   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #462

As has been well documented, you should not be setting pragmas before include.
__________________
asherkin is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 07-01-2016 , 08:48   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #463

Quote:
Originally Posted by asherkin View Post
As has been well documented, you should not be setting pragmas before include.
is there a reason for that?
__________________
retired
shavit is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-01-2016 , 20:16   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #464

Quote:
Originally Posted by shavit View Post
is there a reason for that?
#include literally inserts the source of the included file unless the preprocessor runs into an #endinput directive inside the included file.

Meaning that your #pragma blocks affects any code inside the include files as well.

Side note: You really only see #endinput in an include guard.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-01-2016 at 20:17.
Powerlord is offline
xXDeathreusXx
Veteran Member
Join Date: Mar 2013
Location: pPlayer->GetOrigin();
Old 07-03-2016 , 19:57   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #465

Quote:
Originally Posted by Powerlord View Post
#include literally inserts the source of the included file unless the preprocessor runs into an #endinput directive inside the included file.

Meaning that your #pragma blocks affects any code inside the include files as well.

Side note: You really only see #endinput in an include guard.
TL;DR #include copy pastes code at the point of the #include
__________________
Plugins|Profile
Requests closed

I'm a smartass by nature, get used to it
xXDeathreusXx is offline
szajnimetagross
New Member
Join Date: Jul 2016
Old 07-15-2016 , 06:40   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #466

How to install it? for cs go
szajnimetagross is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-30-2016 , 10:20   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #467

L 07/30/2016 - 04:16:06: [SM] Unable to load extension "dhooks.ext": Could not find interface: IGameHelpers



uuuurg

edit: Saw the post in the last page. gonna update sm
__________________

Last edited by Chdata; 07-30-2016 at 10:22.
Chdata is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 07-30-2016 , 10:22   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #468

What sm version and what version of dhooks
Dr!fter is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 07-30-2016 , 19:17   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #469

I updated sm, it's okay.
__________________
Chdata is offline
dilalmon
AlliedModders Donor
Join Date: Apr 2013
Old 08-04-2016 , 15:11   Re: DHooks (Dynamic Hooks - Dev Preview)
Reply With Quote #470

Latest SM 1.8, andd DHooks, it's passing an invalid handle (hParams) to dynamic hooks for "SetObserverTarget" time to time.
DHookIsNullParam(hParams, 1) is used in the dynamic hook, and results the rror.

Hook:
h_SetObserverTarget = DHookCreate(offset, HookType_Entity, ReturnType_Bool, ThisPointer_CBaseEntity, OnClientObserve);
DHookAddParam(h_SetObserverTarget, HookParamType_CBaseEntity);

Last edited by dilalmon; 08-04-2016 at 15:23.
dilalmon is offline
Reply



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 13:27.


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