You have Unmatched brace
i keep getting 3 errors i fix most of them.
here are the errors. please show me how to fix them. and ty GameTrainerMaker + CoderNever when i finish i give u guys the most credit.
__________________________________________________ _______________
base.cpp(151) : error C2601: 'dwHackThread' : local function definitions are illegal
base.cpp(23): this line contains a '{' which has not yet been matched
base.cpp(158) : error C2601: 'DllMain' : local function definitions are illegal
base.cpp(23): this line contains a '{' which has not yet been matched
base.cpp(166) : fatal error C1075: end of file found before the left brace '{'
__________________________________________________ _______________
here is the hack source *Credits To GameTrainerMaker + CoderNever*
__________________________________________________ _______________
#include <windows.h>
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CSheld.dll" ) != NULL )
return true;
return false;
}
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *LTClient = ( DWORD* )( 0x007d9200 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
void main()
{
while(true)
{
if(GetAsyncKeyState(VK_NUMPAD0)<0){
PushToConsole("SkelModelStencil 1" );
PushToConsole("ModelDebug_DrawBoxes 1" );
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
PushToConsole("FogEnable 1" );
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
PushToConsole("WeaponSway 0.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
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" );
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
memcpy((LPVOID)0x3741A550, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3740AA99, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A564, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A567, "\x90\x90\x90", 3);
memcpy((LPVOID)0x3741A570, "\x90\x90\x90", 3);
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
PushToConsole("ActivationDistance 999999" );
}
if(GetAsyncKeyState(VK_UP)<0){
PushToConsole("CamMaxPosYOffset 200.000000" );
}
if(GetAsyncKeyState(VK_DOWN)<0){
PushToConsole("CamMaxPosYOffset -1000.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
PushToConsole("PlayerGravity 800" );
} else {
PushToConsole("PlayerGravity -800");
}
if(GetAsyncKeyState(VK_NUMPAD6)<0){
PushToConsole("FullBright 1" );
}
if(GetAsyncKeyState(VK_NUMPAD7)<0){
PushToConsole("JumpVel 900.000000" );
}
if(GetAsyncKeyState(VK_NUMPAD8)<0){
PushToConsole("DisableCrosshair 0" );
}
if(GetAsyncKeyState(VK_HOME)<0){
PushToConsole("windowed 1" );
}
if(GetAsyncKeyState(VK_INSERT)<0){
PushToConsole("BaseMoveAccel 5000.000000");
PushToConsole("StartAccel 5000.000000");
PushToConsole("MaxAccel 5000.000000");
PushToConsole("AccelInc 5000.000000");
PushToConsole("WalkVel 5000.000000");
PushToConsole("FRunVel 5000.000000");
PushToConsole("BRunVel 5000.000000");
PushToConsole("SRunVel 5000.000000");
} else {
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
}
if(GetAsyncKeyState(VK_DELETE)<0){
PushToConsole("ShowFirePath 0" );
} else {
PushToConsole("ShowFirePath 1");
}
if(GetAsyncKeyState(VK_MULTIPLY)<0){
PushToConsole("FireSpeed 999.999999" );
}
if(GetAsyncKeyState(VK_TAB)<0){
PushToConsole("ReloadSpeed 0.000000" );
}
if(GetAsyncKeyState(VK_END)<0){
PushToConsole("DrawFlat 0" );
PushToConsole("drawguns 1");
PushToConsole("ModelApplySun 0" );
PushToConsole("SnowEnable 0" );
PushToConsole("MuzzleLight 0" );
PushToConsole("EnableWeatherFX 1" );
PushToConsole("SkyEnable 0");
PushToConsole("WhiteBlood 1" );
PushToConsole( "SkyEnable 0" );
PushToConsole("DrawInterface 0" );
}
if(GetAsyncKeyState(VK_ADD)<0){
PushToConsole("PlayerGravity 0");
PushToConsole("PlayerVelocity 0");
}
if(GetAsyncKeyState(VK_SUBTRACT)<0){
memcpy((LPVOID)0x37466264, "\x90\x90\x90\x90\x90\x90", 6);
}
}
DWORD WINAPI dwHackThread(LPVOID)
{
while( !IsGameReadyForHook() )
Sleep(100);
main();
return 0;
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
{
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH )
{
CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL);
}
return TRUE;
}
Just dont even help the C&Per ok.
I want minion for this section SO BAD! to keep noobs like this posting obvous wrong code.
CODE NEVER. TAKE DOWN THE FKN TUTORAL!
and to the threadstarter:
[img]https://icanhascheezburger.files.*********.com/2008/01/funny-pictures-captain-obvious-cat.jpg[/img]
PushToConsole method that you C+Ped is patched bro
I did copy & paste but not all they gave this code and told me that they put errors in that they say i need to fix the errors i fix all of them but 3 there was more then 10 errors so i am doing a good job this is mine first hacks I learn it better this way.