Keep getting errors with my hack...
Okay, so... I'm new to hacking (please don't flame me, i'm trying and learning
)
So, This is my code:
It is pretty much auto-on chams (I set out for it to be that, at least...)
But when I go to build, I get:
Can anyone please help me? I'm completely lost. I think I have the right unwrapp console code.... And I think I have it in there right, I'm just not sure what I did wrong...
)So, This is my code:
Code:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void CPush(constchar* cmd)
{
_asm
{
PUSH cmd
MOV EAX, 0x00485FA0
CALL EAX
ADD ESP, 0x4
}
}
void main()
{
while(true)
{
PushToConsole("SkelModelStencil 1");
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
But when I go to build, I get:
Code:
error C2065: 'constchar' : undeclared identifier error C2065: 'cmd' : undeclared identifier error C2448: 'CPush' : function-style initializer appears to be a function definition error C3861: 'PushToConsole': identifier not found



