AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Coding MM:S Plugins & SM Extensions (https://forums.alliedmods.net/forumdisplay.php?f=75)
-   -   Solved mempool and threadtools include error with csgo sdk (https://forums.alliedmods.net/showthread.php?t=299651)

blacklagoon 07-22-2017 02:30

mempool and threadtools include error with csgo sdk
 
Hello folks,
i'm trying to port CEntity to csgo and i'm a long way there i believe.
But i'm just one file away to have CEntity files compiled along with an extension and start debugging it.

Code:

CUtlMemoryPool *g_EntityListPool = NULL;

CBaseEntityOutput::~CBaseEntityOutput()
{
        CEventAction *ev = m_ActionList;
        while (ev != NULL)
        {
                CEventAction *pNext = ev->m_pNext;       
                g_EntityListPool->Free(ev);
                ev = pNext;
        }
}

Is why i need the include.
EntityOuput.cpp throws me sdk errors from mempool.h and threadtools.h and my lack of knowledge from the sdk prevents me from understanding why.
Is there a work around to free a CEventAction var type so i can discard the mempool.h include? Or a way to discard the error it throws me in the picture i sent later on here?

Here's a picture of what it throws http://imgur.com/sPp8MA1 !
Any idea or explaination would be great if a kind soul read this is gladly welcome and thanked !
Could it be that my gcc version is too recent?

NVM fixed it by replacing it with its equivalent from csgo found at cbase.cpp


All times are GMT -4. The time now is 10:23.

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