View Single Post
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 12-02-2004 , 17:40   Anyone have any success using gpGlobals?
Reply With Quote #1

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.
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu