AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Anyone have any success using gpGlobals? (https://forums.alliedmods.net/showthread.php?t=36832)

Geesu 12-02-2004 17:40

Anyone have any success using gpGlobals?
 
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.


All times are GMT -4. The time now is 18:41.

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