Helppp

Posts 17 of 7 · Page 1 of 1
Helppp
Code:
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	bool flyhack = false;
	while(true)
	{
		if(GetAsyncKeyState(VK_NUMPAD1)<0){
			if(chams == true){
				PushToConsole("SkelModelStencil 0");
				chams = false;
			} else {
				PushToConsole("SkelModelStencil 1");
				chams = true;
			}
	}
	Sleep(200);
}
================================================== ======
Error 1 error C2601: 'dwHackThread' : local function definitions are illegal
Error 2 error C2601: 'DllMain' : local function definitions are illegal
Error 3 fatal error C1075: end of file found before the left brace '{'
cplusplus.com
Quote Originally Posted by eXaLtIc View Post
Code:
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	bool flyhack = false;
	while(true)
	{
		if(GetAsyncKeyState(VK_NUMPAD1)<0){
			if(chams == true){
				PushToConsole("SkelModelStencil 0");
				chams = false;
			} else {
				PushToConsole("SkelModelStencil 1");
				chams = true;
			}
	}
	Sleep(200);
}
================================================== ======
Error 1 error C2601: 'dwHackThread' : local function definitions are illegal
Error 2 error C2601: 'DllMain' : local function definitions are illegal
Error 3 fatal error C1075: end of file found before the left brace '{'
You might as well post the whole source code so that we can help you since you got this from the other thread and it's just CN's base anyway..
Code:
void main()
{
	// Put all of your bools here for hotkey hacks.
	// For example:
	bool chams = false;
	bool flyhack = false;
	while(true)
	{
		if(GetAsyncKeyState(VK_NUMPAD1)<0){
			if(chams == true){
				PushToConsole("SkelModelStencil 0");
				chams = false;
			} else {
				PushToConsole("SkelModelStencil 1");
				chams = true;
			}
	}
	Sleep(200);
     }
}
I'm doing this from my iPhone.. So Im guessing its a bracket :O
Well you have a bool for fly hack but you never used the fly hack ptc.
You put one extra '}' in the main function.
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?