I have a problem...
Hi Guys !
am trying to learn how to make a warrock hack in visual c++ express edition
But i cant get it working !
Pls tell me if it is enything wrong with this source:
#include <stdio.h>
#include <windows.h>
//Address go Here
#define Playerpointer 0x00CB11C8 //these are current
#define Serverpointer 0x00B39BE0 // as of 8-11-09
#define OFS_Z 0x00000240
#define ADR_SPEED 0x009A6C8C
DWORD *ingame= (DWORD*)Playerpointer;
DWORD *outgame= (DWORD*)Serverpointer;
//Hack Codes Go Here
//Fast All
//Speed
void speed() // insert key, speed on
{
if(GetAsyncKeyState(VK_INSERT) &1)
{
*(float*) ADR_SPEED = 1500;
}
}
void speedoff() // delete key, speed normal
{
if(GetAsyncKeyState(VK_DELETE) &1)
{
*(float*) ADR_SPEED = 100;
}
}
void speedoff() // delete key, speed normal
{
if(GetAsyncKeyState(VK_DELETE) &1)
{
*(float*) ADR_SPEED = 100;
}
}
//Any other hacks you decide to add go above here
//Hack are put into the game here
void HackThread()
{
for(;; )
{
if(*ingame) //check if we are ingame.. prevent crashs
{
speed();
speedoff();
}
if(*outgame)
{
}
Sleep(200); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Brunrompe", "Credits", MB_OK); // Put your
//name where Your Name Here is but leave the ""
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0); //create
// the hackthread
}
return TRUE;
}
I get 2 errors!