Help with Hack
Hello Guys,
Im having a problem with my Mem Hack:
Here is the Code: (CREDITS GO TO @Brimir ! for the good Tutorial!)
It says that "Thing" is a undeclared identifier. Can anyone help? DI d i miss some Brackets?
Im having a problem with my Mem Hack:
Here is the Code: (CREDITS GO TO @Brimir ! for the good Tutorial!)
Code:
#include "stdafx.h"
BOOL WINAPI runner(LPVOID) {
Sleep(9800);
try {
DWORD dllfile = (DWORD)GetModuleHandleA("Cshell.dll");
if(dllfile == false) {
throw 1;
}
}
catch (int error) {
switch(error) {
case 1:
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)runner, NULL, NULL, NULL);
return false;
default:
//Unkown error!
return false;
}
}
Beep(1000,1000);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)Thing, NULL, NULL, NULL);
return true;
}
DWORD WINAPI Thing(LPVOID param) {
#define WeaponMgr 0xAAC3D0
#define WallMgr 0xAAC3BC
#define BasicPlayerInfo 0xA452C8
bool hak = true;
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
DWORD pWallMgr = *(PDWORD)(CShell+WallMgr);
DWORD pBasicPlayerInfo = *(DWORD*)(CShell + BasicPlayerInfo);
DWORD pWeaponMgr = *(PDWORD)(CShell+WeaponMgr);
DWORD* m16 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+25*4);
DWORD* m14 = (DWORD*)((*(DWORD*)(CShell + WeaponMgr))+479*4);
if (hak){
*m16 = *m14;
}
}


)