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

Including CBaseEntity


Post New Thread Reply   
 
Thread Tools Display Modes
Fix
Member
Join Date: Jun 2005
Old 12-25-2005 , 08:54  
Reply With Quote #21

37: IGameEventManager *gameeventmanager = NULL; // game events interface

247: ...!(gameeventmanager = (IGameEventManager *)interfaceFactory(INTERFACEVERSION_GAMEEVENT SMANAGER,NULL)) ||...

272: gameeventmanager->RemoveListener( this ); // make sure we are unloaded from the event system

302: gameeventmanager->AddListener( this, true );

338: gameeventmanager->RemoveListener( this );
Fix is offline
Send a message via ICQ to Fix Send a message via MSN to Fix
c0ldfyr3
AlliedModders Donor
Join Date: Aug 2005
Location: Ireland
Old 12-25-2005 , 09:02  
Reply With Quote #22

Ok, the problem here is that, in your serverplugin_empty.h, on the line that declares your class, you are inheriting IGameEventManager2.

So, when you try and pass the 'this' pointer to functions requiring IGameEventManager (because your gameeventmanager is not 2), it errors.

You should add a 2 to the end of all IGameEventManager's.
__________________
c0ldfyr3 is offline
Send a message via MSN to c0ldfyr3 Send a message via Yahoo to c0ldfyr3
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 04:04.


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