Results 1 to 11 of 11
  1. #1
    jman_nunez's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Sunny Florida
    Posts
    288
    Reputation
    10
    Thanks
    51
    My Mood
    Relaxed

    Help me with the hotkey code i have

    ok well i got my first code to work but then this happened:
    c:\users\jman\documents\visual studio 2008\projects\jman's hotkey hack v0.1\jman's hotkey hack v0.1\whatev.cpp(22): this line contains a '{' which has not yet been matched

    c:\users\jman\documents\visual studio 2008\projects\jman's hotkey hack v0.1\jman's hotkey hack v0.1\whatev.cpp(140) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\jman\documents\visual studio 2008\projects\jman's hotkey hack v0.1\jman's hotkey hack v0.1\whatev.cpp(22)' was matched

    Build log was saved at "file://c:\Users\Jman\Documents\Visual Studio 2008\Projects\Jman's Hotkey Hack v0.1\Jman's Hotkey Hack v0.1\Debug\BuildLog.htm"
    Jman's Hotkey Hack v0.1 - 3 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    i followed what the errors said but everytime i fix it i get more errors

    heres the code:
    Code:
    #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 ) 
    {
        DWORD *LTClient = ( DWORD* )( 0x377ED910 );
    void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
    __asm
    {
    push szCommand;
    call CONoff;
    add esp, 4;
    }
    }
    void main()
    {
        
        bool chams = false;
        bool fog = false;
        bool speed = false;
        bool spread = false;
        bool tracers = false;
        bool showfps = false;
        bool sjump = false;
        while(true)
        {
            
            if(GetAsyncKeyState(VK_NUMPAD1)<0){ 
                if(chams == true){ 
                    PushToConsole("SkelModelStencil 0"); //Nx Chams
                    chams = false; 
                } else { 
                    PushToConsole("SkelModelStencil 1"); 
                    chams = true; 
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD2)<0){
                if(fog){
                    PushToConsole("FogEnable 1"); //No fog
                    fog = false;
                } else {
                    PushToConsole("FogEnable 0");
                    fog = true;
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD3)<0){ //No Spread
                if(spread){
                    PushToConsole("PerturbRotationEffect 3.000000");
                    PushToConsole("PerturbIncreaseSpeed 3.000000");
                    PushToConsole("PerturbDecreaseSpeed 9.000000");
                    PushToConsole("PerturbWalkPercent 0.500000");
                    spread = false;
                } else {
                    PushToConsole("PerturbRotationEffect  0.000000"); 
                    PushToConsole("PerturbIncreaseSpeed 0.000000"); 
                    PushToConsole("PerturbWalkPercent 0.000000"); 
                    PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
                    spread = true;
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD4)<0){ //Speed
                if(speed){
                    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");
                    PushToConsole("DuckVel 50.000000");
                    speed = false;
                } else {
                    PushToConsole("BaseMoveAccel 3000.000000");
                    PushToConsole("StartAccel 3000.000000");
                    PushToConsole("MaxAccel 3000.000000");
                    PushToConsole("AccelInc 3000.000000");
                    PushToConsole("WalkVel 3000.000000");
                    PushToConsole("FRunVel 3000.000000");
                    PushToConsole("BRunVel 3000.000000");
                    PushToConsole("SRunVel 3000.000000");
                    PushToConsole("DuckVel 3000.000000");
                    speed = true;
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD5)<0){ //tracers
                if(tracers){
                    PushToConsole("ShowFirePath 0");
                    tracers = false;
                } else {
                    PushToConsole("ShowFirePath 1");
                    tracers = true;
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD7)<0){ //show fps
                if(showfps){
                    PushToConsole("ShowFps 0");
                    showfps = false;
                } else {
                    PushToConsole("ShowFps 1");
                    showfps = true;
                }
            }
            if(GetAsyncKeyState(VK_NUMPAD6)<0){ //super jump
                if(sjump){
                    PushToConsole("JumpVel 330.000000");
                    sjump = false;
                } else {
                    PushToConsole("JumpVel 660.000000");
                    sjump = true;
        }
        // note to self remember sleep
        Sleep(200);
    }
        }
    DWORD WINAPI dwHackThread(LPVOID)
    {
        while( !IsGameReadyForHook() )
            Sleep(100);
        main(); // Load the void main.
        return 0;
    }
    BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved )
    {
        DisableThreadLibraryCalls(hDll);
        if ( dwReason == DLL_PROCESS_ATTACH )
        {
            //open to mpgh
            system("start http://mpgh.net/");
            CreateThread(NULL, NULL, dwHackThread, NULL, NULL, NULL); // Ignore this.
        }
        return TRUE;
    }




    Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.

  2. #2
    jman_nunez's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Sunny Florida
    Posts
    288
    Reputation
    10
    Thanks
    51
    My Mood
    Relaxed
    bump bump bump




    Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.

  3. #3
    ultahackers's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    139
    Reputation
    9
    Thanks
    73
    My Mood
    Amused
    THSI CODE IS PATCHED. I TESTED IT TODAY.... SO JUST USE TA FLAMES ONE..
    -------------------------------------------------------
    my bad, i tested it and ta base worked after ALOT OF EDITING
    ---------------
    your error/ problem is at

    Code:
    DWORD WINAPI dwHackThread(LPVOID)
    
    
    {
    	
        while( !IsGameReadyForHook() )
            Sleep(100);
        main(); // Load the void main.
        return 0;
    }
    Last edited by ultahackers; 10-09-2010 at 05:05 PM.

  4. #4
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Quote Originally Posted by ultahackers View Post
    THSI CODE IS PATCHED. I TESTED IT TODAY.... SO JUST USE TA FLAMES ONE..
    -------------------------------------------------------
    my bad, i tested it and ta base worked after ALOT OF EDITING
    ---------------
    your error/ problem is at

    Code:
    DWORD WINAPI dwHackThread(LPVOID)
    
    
    {
    	
        while( !IsGameReadyForHook() )
            Sleep(100);
        main(); // Load the void main.
        return 0;
    }
    Lol you newbie. Stol acting up trying to act like you know everything. That looks the same as what he did /
    The error says that a { bracket hasn't been matched with a } bracket somewhere. Adda } at the end of mainvoid /
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  5. #5
    ultahackers's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    139
    Reputation
    9
    Thanks
    73
    My Mood
    Amused
    Quote Originally Posted by flameswor10 View Post
    Lol you newbie. Stol acting up trying to act like you know everything. That looks the same as what he did /
    The error says that a { bracket hasn't been matched with a } bracket somewhere. Adda } at the end of mainvoid /
    i was saying where he's error was, not ta solution.... and i have been on mpgh, just tat am not such a poster like u/yea

  6. #6
    Dewerong's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    Inside a Packet
    Posts
    59
    Reputation
    10
    Thanks
    2
    That is the error to keep noobs from just copying and pasting the hack. Looks like it worked. >.>

  7. #7
    jman_nunez's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Sunny Florida
    Posts
    288
    Reputation
    10
    Thanks
    51
    My Mood
    Relaxed
    Quote Originally Posted by Dewerong View Post
    That is the error to keep noobs from just copying and pasting the hack. Looks like it worked. >.>
    lol it wasnt copied and pasted... it was when i was putting in no recoil i screwed up and i guess i for got a bracket or i deleted one... that was my own error and thanks for pointing out the error person who posted up at the top. helped




    Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.

  8. #8
    UGodly's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    http://www.mpgh.net/forum/members/645501-ugodly.html
    Posts
    1,234
    Reputation
    18
    Thanks
    160
    My Mood
    Yeehaw
    didnt i put no recoil in for you yesterday?

  9. #9
    HiddenoO's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Anchorage, AK
    Posts
    840
    Reputation
    33
    Thanks
    212
    My Mood
    Devilish
    Quote Originally Posted by UGodly View Post
    didnt i put no recoil in for you yesterday?
    Maybe you can put it in mine, /

  10. #10
    jman_nunez's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Sunny Florida
    Posts
    288
    Reputation
    10
    Thanks
    51
    My Mood
    Relaxed
    Quote Originally Posted by UGodly View Post
    didnt i put no recoil in for you yesterday?
    that was my auto on this is hotkey might need ur help again lol




    Last night I lay in bed looking up at the stars in the sky and I thought to myself, where the heck is the ceiling.

  11. #11
    eXaLtIc™'s Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    203
    Reputation
    10
    Thanks
    142
    Wow again just do it your self
    <<Oh yay 100 yay im a member now yay woot

Similar Threads

  1. [Solved] NEED HELP WITH THE ERROE CODE ON COMBAT ARMS 0X3000
    By ikillu0026 in forum Combat Arms Help
    Replies: 2
    Last Post: 07-28-2011, 01:44 PM
  2. [Help Request] help me with the injector thing
    By cwx123cwx in forum CrossFire Help
    Replies: 9
    Last Post: 07-07-2011, 10:37 AM
  3. [Help Request] Someone help me with the hacks.
    By mark15 in forum Combat Arms Help
    Replies: 18
    Last Post: 06-15-2011, 04:04 AM
  4. Help with the sloppiest code ever
    By flameswor10 in forum Combat Arms Coding Help & Discussion
    Replies: 0
    Last Post: 11-30-2010, 03:48 AM
  5. Hello! i need help with the source code.
    By LatinHacker in forum Combat Arms Help
    Replies: 3
    Last Post: 05-14-2010, 11:32 PM