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

Problem porting to OB


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Keeper
Senior Member
Join Date: Nov 2006
Old 10-03-2010 , 10:49   Problem porting to OB
Reply With Quote #1

My plugin for HL2DM needs to be ported.

When I got all of the nit picky things changed, I'm getting this error on compiling:

Code:
SH_DECL_MANUALHOOK0(GetBulletSpread_hook, 0, 0, 0, Vector const& );

1>C:\plugins\sourcemm_sdk\core\sourcehook\sourcehook.h(6743) : error C2528: 'abstract declarator' : pointer to reference is illegal
1>        ..\main.cpp(85) : see reference to function template instantiation 'void SourceHook::SetOverrideResult<__SourceHook_MFHCls_GetBulletSpread_hook::RetType>(SourceHook::ISourceHook *,RetType)' being compiled
1>        with
1>        [
1>            RetType=__SourceHook_MFHCls_GetBulletSpread_hook::RetType
1>        ]
1>C:\plugins\sourcemm_sdk\core\sourcehook\sourcehook.h(6743) : error C2678: binary '=' : no operator found which takes a left-hand operand of type '__SourceHook_MFHCls_GetBulletSpread_hook::RetType ' (or there is no acceptable conversion)
1>        c:\plugins\source-sdks\ob\public\mathlib/vector.h(168): could be 'Vector &Vector::operator =(const Vector &)'
1>        while trying to match the argument list '(__SourceHook_MFHCls_GetBulletSpread_hook::RetType , const Vector)'
If I remove this hook ( which is probably not needed ), it compiles fine. I just want to know if I'm doing something wrong, or what the issue is.
Keeper 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 03:35.


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