I have a problem...

Posts 1–5 of 5 · Page 1 of 1
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!
Have you tried fixing the errors yourself yet?
Quote Originally Posted by Hell_Demon View Post
Have you tried fixing the errors yourself yet?
you think he understands them?
Quote Originally Posted by lalakijilp View Post
you think he understands them?
well since the compiler pretty much shows you the line and what it thinks the error is he should be able to fix it himself o__O
why did u put this in twice?

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;
}
}
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Talk with us