So i'm trying to make my own hack and here's my code.. why so many error?
can some one fix this?
#include <windows.h>
#include <stdio.h>
//--------------------------Define Hacks--------------------------//
#define ADR_PlayerPointer 0x00
#define ADR_ServerPointer 0x00
#define ADR_Glasswall 0x00
//--------------------------End Define Addies--------------------------//
//--------------------------Define HackThread--------------------------//
DWORD *ingame= (DWORD*)PlayerPointer;
DWORD *outgame= (DWORD*)ServerPointer;
//--------------------------Start Hacks--------------------------//
void GWall()
{
DWORD dwPlayerPtr = *(DWORD*)Playerpointer;
if(dwPlayerPtr != 0)
{
if(GetAsyncKeyState(VK_CONTROL) )
{
*(float*)GlassWall = 4;
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
GlassWall();
}
}
Sleep(200); //prevent for overloading the cpu
}

void glasswall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_Glasswall = 1;
else
{
*(int**)ADR_Glasswall = 0;
}
}
}
void HackThread()
{
for(;; )
{
if(*ingame)
{
WallClimb();
}
if(*outgame)
{
}
Sleep(30); //prevent for overloading the cpu
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL, "Made by *Any name Here*", "MPGH Coder", MB_OK);
MessageBoxA(NULL, "A.K.A *CodeName mo*", "CODER", MB_OK);
MessageBoxA(NULL, "Thanks to **", " ", MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
}
return TRUE;
}
#include <windows.h>
#include <stdio.h>
//--------------------------Define Hacks--------------------------//
#define ADR_PlayerPointer 0x00
#define ADR_ServerPointer 0x00
#define ADR_Glasswall 0x00
//--------------------------End Define Addies--------------------------//
//--------------------------Define HackThread--------------------------//
DWORD *ingame= (DWORD*)ADR_PlayerPointer;
DWORD *outgame= (DWORD*)ADR_ServerPointer;
//--------------------------Start Hacks--------------------------//
void GWall()
{
if(GetKeyState(VK_MBUTTON)&1)
*(int*)(ADR_Glasswall) = 1;
else
{
*(int*)(ADR_Glasswall) = 0;
}
}
void Hacktread()
{
for(;; )
{
if(*ingame)
{
GWall();
}
if(*outgame)
{
}
Sleep(200);
}
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
MessageBoxA(NULL,"Your Name","Yamashi",MB_OK);
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)Hacktread, 0, 0, 0);Sleep(700);
}
return TRUE;
}