I realize it's similar to how it was used in amxx, but I still can't get it to work. I added globalvars_base.h to my project and initiated it as follows:
Quote:
static CGlobalVarsBase dummyvars( true );
// So stuff that might reference gpGlobals during DLL initialization won't have a NULL pointer.
// Once the engine calls Init on this DLL, this pointer gets assigned to the shared data in the engine
CGlobalVarsBase *gpGlobals = &dummyvars;
|
Anyone else have any ideas as to what I should do? Accessing it's variables just returns 0.
__________________