I need help :(

Posts 1–11 of 11 · Page 1 of 1
I need help :(
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;
}
Please post the error you have / problems.
Too many (


1>Simple Hack.cpp(7): error C2065: 'ADR_SupernoSpread' : undeclared identifier
1>Simple Hack.cpp(13): error C2065: 'ADR_Glasswall' : undeclared identifier
1>Simple Hack.cpp(17): error C2065: 'ADR_Glasswall' : undeclared identifier
1>Simple Hack.cpp(24): error C2601: 'Boneshot' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(32): error C2601: 'Boneshotoff' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(42): error C2601: 'UnliSp' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(49): error C2601: 'UnliSpoff' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(58): error C2601: 'HackThread' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(78): error C2601: 'DllMain' : local function definitions are illegal
1> Simple Hack.cpp(21): this line contains a '{' which has not yet been matched
1>Simple Hack.cpp(86): fatal error C1075: end of file found before the left brace '{' at 'Simple Hack.cpp(21)' was matched
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
...Em, if I may, I recommend you get a base off of here for it... at one part you put GetKeyState and forgot Async, you forgot close brackets, and you didn't define your addys. Some other little ones here and there...
here you go this must be working fine but you have to change the addys!

Code:
#include <Windows.h>

#define ADR_Playerpointer			0x0//add here your addy
#define	ADR_Serverpointer			0x0//add here your addy
#define ADR_SupernoSpread			0x0//add here your addy
#define ADR_Glasswall				0x0//add here your addy
#define ADR_BoneShot				0x0//add here your addy

DWORD *playing= (DWORD*)ADR_Playerpointer;
DWORD *lobby= (DWORD*)ADR_Serverpointer;

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;
}
Quote Originally Posted by Mike Shinoda View Post
here you go this must be working fine but you have to change the addys!

Code:
#include <Windows.h>

#define ADR_Playerpointer			0x0//add here your addy
#define	ADR_Serverpointer			0x0//add here your addy
#define ADR_SupernoSpread			0x0//add here your addy
#define ADR_Glasswall				0x0//add here your addy
#define ADR_BoneShot				0x0//add here your addy

DWORD *playing= (DWORD*)ADR_Playerpointer;
DWORD *lobby= (DWORD*)ADR_Serverpointer;

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;
}



Good C+P for him, let him search by himself. So he learns it.
nice makis5 for assist
Quote Originally Posted by HAxCodER2 View Post
nice makis5 for assist
why not but i don't know if it will work:P
Quote Originally Posted by Mike Shinoda View Post
why not but i don't know if it will work:P
i know your good in coding ^^
Quote Originally Posted by HAxCodER2 View Post
i know your good in coding ^^
how do you know?:O
Quote Originally Posted by Mike Shinoda View Post
how do you know?:O
BECAUSE IM YOUR FANS ^^
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us