Raised This Month: $7 Target: $400
 1% 

Solved mempool and threadtools include error with csgo sdk


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blacklagoon
Senior Member
Join Date: Jun 2012
Old 07-22-2017 , 02:30   mempool and threadtools include error with csgo sdk
Reply With Quote #1

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

Last edited by blacklagoon; 07-24-2017 at 09:23.
blacklagoon is offline
Reply


Thread Tools
Display Modes

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:36.


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