#include <windows.h>
#define ADR_Playerpointer 0x00AD3A28
#define ADR_Serverpointer 0x009CD4C8
#define ADR_GlassWalls 0x00957084
#define ADR_Stamina 0x007F205C
#define ADR_SNS 0x007F4558
#define OFS_NoRecoil1 0x00000C444
#define OFS_NoRecoil2 0x00000C44C
#define OFS_NoRecoil3 0x00000C448
DWORD *ingame= (DWORD*)ADR_Playerpointer;
DWORD *outgame= (DWORD*)ADR_Serverpointer;
void glasswall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_GlassWalls = 1;
else
{
*(int**)ADR_GlassWalls = 0;
}
}
void sns()
{
*(double*)ADR_SNS = 0;
}
void Stamina() //UnliSP
{
*(float*)ADR_Stamina = 9999999;
*(float*)ADR_Stamina = 0;
*(float*)ADR_Stamina = 0;
*(float*)ADR_Stamina = 0;
*(float*)ADR_Stamina = 9999999;
}
void nr()
{
DWORD dwPlayerPtr = *(DWORD*)ADR_PlayerPointer;
if(dwPlayerPtr != 0)
{
*(float*)(dwPlayerPtr+OFS_NoRecoil1) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil2) = 0;
*(float*)(dwPlayerPtr+OFS_NoRecoil3) = 0;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
glasswall();
Stamina();
sns();
nr();
}
if(*outgame)
{
}
Sleep(200); //prevent for overloading the cpu
C:\Documents and Settings\UserXp\My Documents\dllmain.c In function 'nr':
41 30 C:\Documents and Settings\UserXp\My Documents\dllmain.c [Error] 'ADR_PlayerPointer' undeclared (first use in this function)
41 30 C:\Documents and Settings\UserXp\My Documents\dllmain.c each undeclared identifier is reported only once for each function it appears in
C:\Documents and Settings\UserXp\My Documents\Makefile.win [Build Error] [dllmain.o] Error 1 (if this is the only error: please check your library includes)
How tO correct cOde and why wrong