My errors when compiling

Posts 115 of 33 · Page 1 of 3
My errors when compiling
well heres the code im using and im getting 3 erors yes i am gonna give credits to the base
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand ) // This is the beginning of the PTC Method
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 /*This is the L.T.Client.*/ );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
// Put all of your bools here for hotkey hacks.
// For example:
bool chams = false;
bool spread = false;
while(true)
{

// This is a example of a hotkey hack.
if(GetAsyncKeyState(VK_NUMPAD1)<0){ // If you press NUMPAD1
if(chams == true){ // If the bool chams is true
PushToConsole("SkelModelStencil 0"); // Do this. For example this line is for NX Chams off.
chams = false; // Make sure bool chams is false.
} else { // Now where saying if bool chams is equal to false turn on.
PushToConsole("SkelModelStencil 1"); // Do this. For example this line is for NX Chams on.
chams = true; // Make sure bool chams is true.
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){ // If you press NUMPA
if(spread == true){
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
spread = false; // Make sure bool chams is false.
} else { // Now where saying if bool chams is equal to false turn on.
PushToConsole("PerturbRotationEffect 0.000000" );
PushToConsole("PerturbIncreaseSpeed 0.000000" );
PushToConsole("PerturbWalkPercent 0.000000" );
PushToConsole("PerturbFiringIncreaseSpeed 0.000000" );
PushToConsole("PerturbRecoil 0.000000" );
PushToConsole("FireMovePerturb 0.000000" );
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000" );
PushToConsole("ZoomedFireMovePerturb 0.000000" );
PushToConsole("ZoomedFireDuckPerturb 0.000000" );
spread = true; // Make sure bool chams is true.
}

}

}
// Sleep makes less lag. Because the PTC Commands above are rapidly being used. This creates a break between loading again.
Sleep(200);
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main(); // Loads the void main.
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
// If you want to show a message box or open a website when injected put it here.
// For example:
system("start http://Mpgh.net/");
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
}
return TRUE;
}




heres the errors



1>------ Build started: Project: CNSBase, Configuration: Debug Win32 ------
1>Compiling...
1>Base.cpp
1>d:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(70) : error C2601: 'dwHackThread' : local function definitions are illegal
1> d:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(22): this line contains a '{' which has not yet been matched
1>d:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(77) : error C2601: 'DllMain' : local function definitions are illegal
1> d:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(22): this line contains a '{' which has not yet been matched
1>d:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(88) : fatal error C1075: end of file found before the left brace '{' at 'd:\documents and settings\owner\my documents\cnsbase\cnsbase\base.cpp(22)' was matched
1>Build log was saved at "file://d:\Documents and Settings\Owner\My Documents\CNSBase\CNSBase\Debug\BuildLog.htm"
1>CNSBase - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========




please help
Oh my fucking god. Here comes the ruthless flaming because I'm fucking tired of this bullshit.

Do you have to make like 3 fucking threads every single god damn day asking for some fucking help because you are retarded??? How many times have the people in this section told you to go learn C++ before fucking coming here and asking stupid questions? All you are doing is pissing people off and spamming this section. You are probably the most stupidest person I have ever seen... How the fuck do you live without getting the shit beat out of you every single day. Go pick up a fucking C++ book, and read it before coming back to this section. You have been banned before, for spamming this section and you will be panned again (hopefully permanently this time). You release a simple "hack" yet you dont even give credits fucking Palestinian(avatars dont lie!) leecher.

End

Oh and you forgot a }
-fixed in 30 seconds and im a true noob- /
Quote Originally Posted by CodeDemon View Post
Oh my fucking god. Here comes the ruthless flaming because I'm fucking tired of this bullshit.

Do you have to make like 3 fucking threads every single god damn day asking for some fucking help because you are retarded??? How many times have the people in this section told you to go learn C++ before fucking coming here and asking stupid questions? All you are doing is pissing people off and spamming this section. You are probably the most stupidest person I have ever seen... How the fuck do you live without getting the shit beat out of you every single day. Go pick up a fucking C++ book, and read it before coming back to this section. You have been banned before, for spamming this section and you will be panned again (hopefully permanently this time). You release a simple "hack" yet you dont even give credits fucking Palestinian(avatars dont lie!) leecher.

End

Oh and you forgot a }
The truth has been spoken.
/yea
Quote Originally Posted by CodeDemon View Post
Oh my fucking god. Here comes the ruthless flaming because I'm fucking tired of this bullshit.

Do you have to make like 3 fucking threads every single god damn day asking for some fucking help because you are retarded??? How many times have the people in this section told you to go learn C++ before fucking coming here and asking stupid questions? All you are doing is pissing people off and spamming this section. You are probably the most stupidest person I have ever seen... How the fuck do you live without getting the shit beat out of you every single day. Go pick up a fucking C++ book, and read it before coming back to this section. You have been banned before, for spamming this section and you will be panned again (hopefully permanently this time). You release a simple "hack" yet you dont even give credits fucking Palestinian(avatars dont lie!) leecher.

End

Oh and you forgot a }
*owned*
/short
Quote Originally Posted by flashlight95 View Post
The truth has been spoken.
/yea
so airgo gtfo
About time someone fucking shut this douchebag up.
/raped
/leecher GTFO
/Move Too C++ Section...
Yay.... Nice speech codedemon
Quote Originally Posted by NOOBJr View Post
Yay.... Nice speech codedemon
You cant code either so shut the fuck up
Yes i can. I was a dumb ass before. You see my menu hacks?
Quote Originally Posted by NOOBJr View Post
Yes i can. I was a dumb ass before. You see my menu hacks?
ya i see them. and they are shit.
Quote Originally Posted by NOOBJr View Post
Yes i can. I was a dumb ass before. You see my menu hacks?
Well Coding Ca Isnt That Hard Too Do Anymore..Everyone Has A Menu Now...
Not Surprised You Have One...
Quote Originally Posted by whit View Post


Well Coding Ca Isnt That Hard Too Do Anymore..Everyone Has A Menu Now...
Not Surprised You Have One...
He's probably using Gellins base...
well.. your right but im doin better than before.
Posts 115 of 33 · Page 1 of 3
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?