What's wrong with this? I'm not sure cauz this is only the first time I code, help
#include <Windows.h>
void Supernospread1()
{
*(double*)ADR_SupernoSpread =0;
}
void Glasswall()
{
if(GetKeyState(VK_MBUTTON))
*(int*)ADR_Glasswall = 1;
else
{
*(int**)ADR_Glasswall = 0;
}
}
void All()
{
void Boneshot()
{
if(GetAsyncKeyState(VK_NUMPAD1) &1)
{
MessageBeep(MB_ICONINFORMATION);
*(float*)ADR_BoneShot = 1235;
}
}
void Boneshotoff()
{
if(GetAsyncKeyState(VK_NUMPAD2) &1)
{
MessageBeep(MB_ICONINFORMATION);
*(float*)ADR_BoneShot = 1237;
}
}
void UnliSp()
{
if(GetAsyncKeyState(VK_NUMPAD3) &1)
{
*(float*)0x929DEC = 999999;
}
}
void UnliSpoff()
{
if(GetAsyncKeyState(VK_NUMPAD4) &1)
{
*(float*)0x929DEC = 0;
}
}
void HackThread()
{
for(;; )
{
if(*playing)
{
//Ingame Functions!
Glasswall();
Supernospread1();
UnliSp();
UnliSpoff();
}
if(*lobby)
{
//OutGame Functions!
}
}
Sleep(200);
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
{
if(dwReason == DLL_PROCESS_ATTACH)
{
CreateThread(0, 0, (LPTHREAD_START_ROUTINE)HackThread, 0, 0, 0);
MessageBoxA(NULL,"Made By: iStrikEBerry","Successfully Injected",MB_OK);
}
return TRUE;
}