Need some help

Posts 19 of 9 · Page 1 of 1
Need some help
Ok I have been trying to code a hot key hack but i am having a problem. Only the first key is working. I can code everything to 1 button but that is getting hard because I have added alot to the hack. I will paste some of my code if needed. I would like just a simple example of coding 2 buttons with 2 different hacks. I know how to turn off and on the hacks its just when I try to use another key it doesn't work. The first hack turns on but when I press the 2nd key there is nothing.


void main()
{
while(true)

if(GetAsyncKeyState(VK_NUMPAD6) &1){;
nxbrite = !nxbrite;
if(nxbrite){
PushToConsole("FullBright 1" );
nxbrite = true;
} else {
PushToConsole("FullBright 0" );
nxbrite = false;
}
}
if(GetAsyncKeyState(VK_NUMPAD9) &1){;
nxfps = !nxfps;
if(nxfps){
//FPS
PushToConsole("ShowFps 1");
nxfps = true;
} else {
PushToConsole("ShowFps 0");
nxfps = false;
}
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )

main();

Sleep(100);

return 0;
}

Any help would be appreciated.
Code:
if(GetAsyncKeyState(VK_NUMPAD6) &1){;
If you don't know whats wrong with that line of code, go here: C++ Language Tutorial

I even underlined it for you.

Your also missing the opening bracket for the infinate loop.
Quote Originally Posted by LightzOut View Post
Code:
if(GetAsyncKeyState(VK_NUMPAD6) &1){;
If you don't know whats wrong with that line of code, go here: C++ Language Tutorial

I even underlined it for you.

Your also missing the opening bracket for the infinate loop.
Lol, Yea I'm sure knowing C++ will also automatically teach you the guidelines for hacking. Also no outside links.
Quote Originally Posted by CoderNever View Post
Lol, Yea I'm sure knowing C++ will also automatically teach you the guidelines for hacking. Also no outside links.
Learn C++ Does Teach How To Code For Ca../
Quote Originally Posted by whit View Post


Learn C++ Does Teach How To Code For Ca../
OFF TOPIC U ALL READY HAVE 602 THANKS
Quote Originally Posted by topblast View Post


OFF TOPIC U ALL READY HAVE 602 THANKS
Thanks For Ya Compliments...
Quote Originally Posted by whit View Post


Thanks For Ya Compliments...
bitches dont have a A
This code is completely fixed. I fix all the problems i saw and made it 100% copy and paste-able. I am not perfect i need some of u guys to help me with problems that i did'nt see.


Code:
void main()
{
	while(true){

		if(GetAsyncKeyState(VK_NUMPAD6) &1){
			nxbrite = !nxbrite;
			if(nxbrite){
				PushToConsole("FullBright 1" );
				nxbrite = true;
			} else {
				PushToConsole("FullBright 0" );
				nxbrite = false;
			}
		}
		if(GetAsyncKeyState(VK_NUMPAD9) &1){
			nxfps = !nxfps;
			if(nxfps){
				//FPS
				PushToConsole("ShowFps 1");
				nxfps = true;
			} else {
				PushToConsole("ShowFps 0");
				nxfps = false;
			}
		}
		Sleep(100);
	}
}

DWORD WINAPI dwHackThread(LPVOID)
{
	while( !IsGameReadyForHook() )
		Sleep(100);

	main();


	return 0;
}


You still the dllmain so if u inject this it will be useless
Posts 19 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?