Results 1 to 10 of 10
  1. #1
    AquaShot's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    216

    Question Where is wrong? :(

    Hello MPGH ,

    I'm here to see the mistakes that I do in C++ !

    Where it isn't good, please draw my attention!

    Open:

    Microsoft Visual C++ 2010 Express -> New Project... -> Win32 Project -> Project Name -> Next> -> Select DLL -> Finish -> Put any code before "// Project Name.cpp : Defines the exported functions for the DLL application.
    //

    #include "stdafx.h""

    Example:

    Link: https://www.mpgh.net/forum/580-crossf...-wallhack.html (By @darlwis , and I put the link to not think that stealing!)

    Example (With @darlwis code):

    Code:
    // Project Name.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #define NoRecoil1 0x051C
    #define NoRecoil2 0x0684
    #define NoRecoil3 0x1934
    #define NoRecoil4 0x1B18
    #define NoRecoil5 0x1FA0
    #define NoRecoil6 0x2108
    #define NoRecoil7 0x2270
    #define NoReload 0x26A4
    #define WeaponMgr 0xAB7270
    #define SeeGhost1 0x88
    #define SeeGhost2 0x90
    #define SeeGhost3 0x8C
    
    memcpy((VOID*)0x6CD5D4, "\x00\x00\x00\x00\x00\x00", 6);
    memcpy((VOID*)0x6CD5D4, "\x01\x01\x01\x01\x01\x01", 6);
    Code by @darlwis

    Where is wrong?

    If someone wants to correct me, write my whole code, because otherwise I do not understand, because I'm noob!

  2. #2
    AquaShot's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    216
    Anyone can help me please?
    Press THANKS button!

  3. #3
    darlwis's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    228
    Reputation
    33
    Thanks
    53
    My Mood
    Inspired
    Quote Originally Posted by AquaShot View Post
    Hello MPGH ,

    I'm here to see the mistakes that I do in C++ !

    Where it isn't good, please draw my attention!

    Open:

    Microsoft Visual C++ 2010 Express -> New Project... -> Win32 Project -> Project Name -> Next> -> Select DLL -> Finish -> Put any code before "// Project Name.cpp : Defines the exported functions for the DLL application.
    //

    #include "stdafx.h""

    Example:

    Link: https://www.mpgh.net/forum/580-crossf...-wallhack.html (By @darlwis , and I put the link to not think that stealing!)

    Example (With @darlwis code):

    Code:
    // Project Name.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #define NoRecoil1 0x051C
    #define NoRecoil2 0x0684
    #define NoRecoil3 0x1934
    #define NoRecoil4 0x1B18
    #define NoRecoil5 0x1FA0
    #define NoRecoil6 0x2108
    #define NoRecoil7 0x2270
    #define NoReload 0x26A4
    #define WeaponMgr 0xAB7270
    #define SeeGhost1 0x88
    #define SeeGhost2 0x90
    #define SeeGhost3 0x8C
    
    memcpy((VOID*)0x6CD5D4, "\x00\x00\x00\x00\x00\x00", 6);
    memcpy((VOID*)0x6CD5D4, "\x01\x01\x01\x01\x01\x01", 6);
    Code by @darlwis

    Where is wrong?

    If someone wants to correct me, write my whole code, because otherwise I do not understand, because I'm noob!
    1:U Need a DllMain
    2: For OFF and On do this:
    Code:
    bool wallhack = false;
    if(GetAsyncKeyState(VK_F4)) {
    wallhack = !wallhack;
    }
    
    
    if(wallhack)
    {
    memcpy((VOID*)0x6CD5D4, "\x00\x00\x00\x00\x00\x00", 6);//ON
    }
    else
    {
    memcpy((VOID*)0x6CD5D4, "\x01\x01\x01\x01\x01\x01", 6);//OFF
    }

  4. #4
    AquaShot's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    216
    Aham...

    You mean something like this:


    Code:
    // Project Name.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #define NoRecoil1 0x051C
    #define NoRecoil2 0x0684
    #define NoRecoil3 0x1934
    #define NoRecoil4 0x1B18
    #define NoRecoil5 0x1FA0
    #define NoRecoil6 0x2108
    #define NoRecoil7 0x2270
    #define NoReload 0x26A4
    #define WeaponMgr 0xAB7270
    #define SeeGhost1 0x88
    #define SeeGhost2 0x90
    #define SeeGhost3 0x8C
    
    bool wallhack = false;
    if(GetAsyncKeyState(VK_F4)) {
    wallhack = !wallhack;
    }
    
    
    if(wallhack)
    {
    memcpy((VOID*)0x6CD5D4, "\x00\x00\x00\x00\x00\x00", 6);//ON
    }
    else
    {
    memcpy((VOID*)0x6CD5D4, "\x01\x01\x01\x01\x01\x01", 6);//OFF
    }
    Certainly isn't good because say:

    Code:
    ------ Build started: Project: Ent3r, Configuration: Debug Win32 ------
      Ent3r.cpp
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2059: syntax error : 'if'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2447: '{' : missing function header (old-style formal list?)
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(24): error C2059: syntax error : 'if'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(25): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(25): error C2447: '{' : missing function header (old-style formal list?)
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(28): error C2059: syntax error : 'else'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(29): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(29): error C2447: '{' : missing function header (old-style formal list?)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Ent3r is my Project Name!
    Press THANKS button!

  5. The Following User Says Thank You to AquaShot For This Useful Post:

    prototypehack (04-06-2012)

  6. #5
    darlwis's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    228
    Reputation
    33
    Thanks
    53
    My Mood
    Inspired
    Quote Originally Posted by AquaShot View Post
    Aham...

    You mean something like this:


    Code:
    // Project Name.cpp : Defines the exported functions for the DLL application.
    //
    
    #include "stdafx.h"
    #define NoRecoil1 0x051C
    #define NoRecoil2 0x0684
    #define NoRecoil3 0x1934
    #define NoRecoil4 0x1B18
    #define NoRecoil5 0x1FA0
    #define NoRecoil6 0x2108
    #define NoRecoil7 0x2270
    #define NoReload 0x26A4
    #define WeaponMgr 0xAB7270
    #define SeeGhost1 0x88
    #define SeeGhost2 0x90
    #define SeeGhost3 0x8C
    
    bool wallhack = false;
    if(GetAsyncKeyState(VK_F4)) {
    wallhack = !wallhack;
    }
    
    
    if(wallhack)
    {
    memcpy((VOID*)0x6CD5D4, "\x00\x00\x00\x00\x00\x00", 6);//ON
    }
    else
    {
    memcpy((VOID*)0x6CD5D4, "\x01\x01\x01\x01\x01\x01", 6);//OFF
    }
    Certainly isn't good because say:

    Code:
    ------ Build started: Project: Ent3r, Configuration: Debug Win32 ------
      Ent3r.cpp
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2059: syntax error : 'if'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(19): error C2447: '{' : missing function header (old-style formal list?)
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(24): error C2059: syntax error : 'if'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(25): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(25): error C2447: '{' : missing function header (old-style formal list?)
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(28): error C2059: syntax error : 'else'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(29): error C2143: syntax error : missing ';' before '{'
    c:\documents and settings\iarktic0\my documents\visual studio 2010\projects\ent3r\ent3r\ent3r.cpp(29): error C2447: '{' : missing function header (old-style formal list?)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    Ent3r is my Project Name!
    lol first learn C++,Then Code.
    U are wrong at all let me do a base for u later.

  7. #6
    Swag's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Location
    Netherlands
    Posts
    1,619
    Reputation
    19
    Thanks
    1,865
    My Mood
    Amused
    Make a thread and put the wallhack in the thread

  8. #7
    AquaShot's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    216
    Quote Originally Posted by Swag View Post
    Make a thread and put the wallhack in the thread
    @Swag ,

    I make another hack, please help me!
    Press THANKS button!

  9. The Following User Says Thank You to AquaShot For This Useful Post:

    sven312 (04-07-2012)

  10. #8
    AquaShot's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    33
    Reputation
    10
    Thanks
    216
    Help me please?
    Press THANKS button!

  11. #9
    Sprite's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Behind you
    Posts
    1,279
    Reputation
    12
    Thanks
    1,124
    My Mood
    Psychedelic
    You need a thread and DLL Main

  12. #10
    derh.acker's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    localhost
    Posts
    826
    Reputation
    14
    Thanks
    616
    My Mood
    Angelic
    You can't call functions outside a function
    That's something you would see at the first page after creating a project in a programming book
    Last edited by derh.acker; 05-12-2012 at 01:33 AM.

Similar Threads

  1. [Solved]I know wrong section idk where to post
    By MlG10thHost in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 01-19-2011, 07:51 PM
  2. Where could I learn C++? (Beginner, and Advanced stuff)
    By TsumikiriX in forum C++/C Programming
    Replies: 8
    Last Post: 07-19-2006, 08:11 PM
  3. where can i get older client?
    By DrKaOs in forum WarRock - International Hacks
    Replies: 5
    Last Post: 02-05-2006, 10:04 AM
  4. Where do i find WPE Pro?
    By Rileyman1211 in forum WarRock - International Hacks
    Replies: 1
    Last Post: 01-16-2006, 09:52 AM
  5. Plz I Want Maple Global Hacks And Where Do I Get Game Engine 2 Make The Hacks Work???
    By mattinthehat in forum MapleStory Hacks, Cheats & Trainers
    Replies: 3
    Last Post: 01-15-2006, 06:12 PM