I'm new to C++ and I would appreciate some help for my project.
I am currently developing a "Mod" for a video game with C++, and I keep getting the error
C2011: 'Entity': 'class' type redefinition
Here is my Entity.cpp file:
#include "include.h"
DWORD Entity::Get(int Index)
{
return *(DWORD*)(Global_GameModule + dwEntityList + (Index * 0x10));
}
int Entity::GetHealth(DWORD Entity)
{
return *(int*)(Entity + m_iHealth);
}
int Entity::GetTeam(DWORD Entity)
{
return *(int*)(Entity + m_iTeamNum);
}
Entity.h file:
#include "include.h"
class Entity
{
public:
DWORD Get(int Index);
int GetHealth(DWORD Entity);
int GetTeam(DWORD Entity);
};
If you need more information/more code (e. g. my include.h file) feel free to tell me that!
Aucun commentaire:
Enregistrer un commentaire