Quote Originally Posted by termica View Post
hello, iv tried to make an warrock hack for first time on long now :P
so yea, i come over some errors and i dont know what to do to get around them or if i just can ignore them....


1>------ Build started: Project: termica3, Configuration: Debug Win32 ------
1>Linking...
1>termica3.obj : error LNK2005: _DllMain@12 already defined in dllmain.obj
1>C:\Users\Jonas\Desktop\warrockinjector\termica3\ Debug\termica3.dll : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Users\Jonas\Desktop\warrockinjector\termica3\te rmica3\Debug\BuildLog.htm"
1>termica3 - 2 error(s), 0 warning(s)
===== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =======



i whant it to work an if you can help me feel free to post it down bellow here, or pm me thanks
This is why.... Here are your 2 .cpp files....


Hack.cpp
Code:
PLAYERPTR PLAYERPRTTABLE[PTRKEY];
//Constructor
CHACK::CHACK( )
{
	memset( PLAYERPRTTABLE, 0, sizeof(PLAYERPRTTABLE) );
}
//Deructor
CHACK::~CHACK( )
{
}
//Destructor

HACK2.cpp
Code:
PLAYERPTR PLAYERPRTTABLE[PTRKEY];
//Constructor
CHACK2::CHACK2( )
{
	memset( PLAYERPRTTABLE, 0, sizeof(PLAYERPRTTABLE) );
}
//Destructor
CHACK2::~CHACK2( )
{
}
When i go to complie this i get the error because i have two of the same PLAYERPTR PLAYERPRTTABLE[PTRKEY]; to fix it simple just search for the DllMain and you will need to get rid of 1 or fix the issue at hand..