i keep getting 1 to 3 errors but i use CoderNever and acid base so i give them the credit when i am done i did not copy and paste i type it this is the errors i getting:
: this line contains a '{' which has not yet been matched
: error C2601: 'DllMain' : local function definitions are illegal
: this line contains a '{' which has not yet been matched
but when i fix those errors i get this error:
: error C2447: '{' : missing function header (old-style formal list?)
here is the source i been working on and i will upload the base:
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" )!= NULL
&& GetModuleHandleA( "ClientFX.fxd" )!= NULL
&& GetModuleHandleA( "CShell.dll" )!= NULL )
return true;
return false;
}
void PushToConsole(const char* Command) {
DWORD CNADDIE = 0x007d9200;
void* Send = ( void* )*( DWORD* )(CNADDIE);
__asm
{
push Command;
call Send;
add esp, -3-1+2+6;
}
}
void main()
{
bool HackStatus = false;
while(true);
{
if(GetAsyncKeyState(VK_NUMPAD0)<0 && HackStatus == true ){
PushToConsole("SkelModelStencil 1");
PushToConsole("ModelDebug_DrawBoxes 1");
HackStatus = false;
}
if(GetAsyncKeyState(VK_NUMPAD0)<0 && HackStatus == false){
PushToConsole("SkelModelStencil 0");
PushToConsole("ModelDebug_DrawBoxes 0");
HackStatus = true;
}
if(GetAsyncKeyState(VK_NUMPAD1)<0 && HackStatus == true){
PushToConsole("WeaponSway 1");
HackStatus = false;
}
if(GetAsyncKeyState(VK_NUMPAD1)<0 && HackStatus == false){
PushToConsole("WeaponSway 0");
HackStatus = true;
}
if(GetAsyncKeyState(VK_NUMPAD2)<0 && HackStatus == true){
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbWalkPercent 9.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.500000");
HackStatus = false;
}
if(GetAsyncKeyState(VK_NUMPAD2)<0 && HackStatus == false){
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("PerturbIncreaseSpeed 0.000000");
PushToConsole("PerturbWalkPercent 0.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
HackStatus = true;
}
if(GetAsyncKeyState(VK_NUMPAD3)<0 && HackStatus == true){
memcpy((LPVOID)0x3741A550, "\xD8\x66\x54", 3);
memcpy((LPVOID)0x3740AA99, "\xD9\x46\x54", 3);
memcpy((LPVOID)0x3741A564, "\xD9\x5E\x54", 3);
memcpy((LPVOID)0x3741A567, "\xD9\x46\x48", 3);
memcpy((LPVOID)0x3741A570, "\xD9\x5E\x48", 3);
HackStatus = false;
}
if(GetAsyncKeyState(VK_NUMPAD3)<0 && HackStatus == false){
memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
HackStatus = true;
}
if(GetAsyncKeyState(VK_NUMPAD4)<0 && HackStatus == true){
memcpy((LPVOID)0x37466264, "\x0F\x84\xB1\x01\x00\x00", 6);
HackStatus = false;
}
if(GetAsyncKeyState(VK_NUMPAD4)<0 && HackStatus == false){
memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
HackStatus = true;
}
}
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;
}