Results 1 to 2 of 2
  1. #1
    luckie12's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Holland
    Posts
    34
    Reputation
    10
    Thanks
    0
    My Mood
    Buzzed

    Unhappy Errors about a process in C++ Project

    hey i have a code for a dll hack but if i whant to compile it i get 8 errors 0 warnings - errors:

    Code:
    --------------------Configuration: HM - Win32 Debug--------------------
    Compiling...
    main.cpp
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(44) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(46) : error C2143: syntax error : missing ';' before '}'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(50) : error C2143: syntax error : missing ';' before '{'
    C:\Documents and Settings\Luc\Bureaublad\OP7 Teleport\HM\main.cpp(50) : error C2447: missing function header (old-style formal list?)
    Error executing cl.exe.
    
    main.obj - 8 error(s), 0 warning(s)
    The Project Code

    Code:
    #include <windows.h>
    #include <stdio.h>
    #include <iostream>
    #include <conio.h>
    #include <string>
    #include <fstream>
    #include <float.h>
    using namespace std;
    
     DWORD WINAPI LoopFunction( LPVOID lpParam  )
    {
    	  BYTE StandingON[] = {0x8B, 0x02, 0x90};
        BYTE CrouchingON[] = {0x8B, 0x11, 0x90};
        BYTE StandingOFF[] = {0x8B, 0x42, 0x4C};
        BYTE CrouchingOFF[] = {0x8B, 0x51, 0x50};
    
        bool Crosshair = false;
    
        HANDLE operation7 = GetCurrentProcess();
    
        while(1) {
            if (GetAsyncKeyState(VK_F3)&0x80000) {
                if (Crosshair == true) {
                    WriteProcessMemory(operation7, (void*)(0x05E2C88), &StandingOFF, 3, 0);
                    WriteProcessMemory(operation7, (void*)(0x05E2C93), &CrouchingOFF, 3, 0);
                    Crosshair = false;
    
                }
                else if( Crosshair == false) {
                    WriteProcessMemory(operation7, (void*)(0x05E2C88), &StandingON, 3, 0);
                    WriteProcessMemory(operation7, (void*)(0x05E2C93), &CrouchingON, 3, 0);
                    Crosshair = true;
                }
    
            }
        }
    
    //some CPU relief
        Sleep(200);
    	return 0;
    }
    
    
    ;}
    return 0;
    }
    
    
    BOOL WINAPI DllMain (HINSTANCE hModule, DWORD dwAttached, LPVOID lpvReserved)
    {
        if (dwAttached == DLL_PROCESS_ATTACH) {
            CreateThread(NULL,0,&LoopFunction,NULL,0,NULL);
        }
        return 1;
    }
    What is wrong?

    PS:Using Microsoft visual c++ 6.0 no eclipse
    Its from a tutorial (the code)


    TY luckie12
    92% of the regular players are getting raped by hackers. 8% ARE the hackers.

    If you are one of the 8%, Put THIS into your siggy.


  2. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Typical noob. Putting your sleep function outside an infinite loop >_>.... check your brackets. You've got to many. Also your GetAsyncKeyState() will never work because its should be 0x8000. and go learn C++, cuz damn.

    I would like to talk to the ****** who made this code, but not you, goddamn leecher. This is what happens when leechers teach other leechers how to code. Try injecting some shit like this and you'll be calling WPM a 100 times a second. which will cause huge amounts of lag. Not only that, but you will have to hold the key down. and even when ur not holding it your liable to crash the system. And if you don't wait for the right modules to load this will probably just crash on injection.

    idk, maybe some coder was just screwing with you nubs. In that case. good for him.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

Similar Threads

  1. ABOUT TVing PROCESS!
    By :): in forum Combat Arms Help
    Replies: 4
    Last Post: 01-28-2011, 09:25 PM
  2. New news about crossfire process
    By CrossRaiders in forum CrossFire Discussions
    Replies: 11
    Last Post: 12-31-2010, 04:33 AM
  3. [Please Help!] MHS Error when Opening Process
    By zorith in forum Combat Arms Hacks & Cheats
    Replies: 15
    Last Post: 08-29-2008, 11:25 AM
  4. Help about error on elite version hack.
    By apeguy in forum Combat Arms Hacks & Cheats
    Replies: 4
    Last Post: 08-21-2008, 04:53 PM
  5. About the error -1 shit
    By Hyperion in forum Combat Arms Hacks & Cheats
    Replies: 11
    Last Post: 08-16-2008, 11:07 AM