Results 1 to 8 of 8
  1. #1
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh

    [HELP]C++ No Recoil (Modern Warfare 2)

    ok guys...its the first time that i worked on C++ right(HELL I LOVE C++!)/yea
    now i maded this:
    FirstHack.cpp:
    [PHP]// First Hack.cpp : Defines the exported functions for the DLL application.
    //

    #include "stdafx.h"
    #include "mem.h"
    #include "NOPs.h"

    int Ammo = 9999;


    int hack(){

    int il = NoFlash + NoRecoil + Ammo;

    if(bool hack = true){
    bool Recoil = false;
    }else{
    bool Recoil = true;
    }

    NOPMemory(0x4730E7);
    NOPMemory(0x457310);

    return il;

    }[/PHP]

    mem.h:
    [PHP]#ifndef NoRecoil
    #define NoRecoil 0x4730E7
    #endif

    #ifndef NoFlash
    #define NoFlash 0x457310
    #endif


    #define ammo
    #pragma once ammo

    #define address01 = 0x4730E7;
    #define address02 = 0x457310;

    int mainMEM(){
    bool hackEnabled = true;
    return 0;
    }
    [/PHP]

    NOPs.h:
    [PHP]/*This has got the main NOP form.
    I added this to make eiser the hack !
    Thank you.*/

    #ifndef nop
    #define nop 0x90
    #include <windows.h>

    void NOPMemory(int address);

    static DWORD NOPfunction = 0x90;

    #endif[/PHP]
    and it says:
    Error 1 error LNK2019: unresolved external symbol "void __cdecl NOPMemory(int)" (?NOPMemory@@YAXH@Z) referenced in function "int __cdecl hack(void)" (?hack@@YAHXZ) First Hack.obj First Hack
    and:
    Error 2 fatal error LNK1120: 1 unresolved externals C:\Documents and Settings\***\My Documents\Visual Studio 2008\Projects\First Hack\Debug\First Hack.dll First Hack
    can someone help me please?

  2. #2
    B4M's Avatar
    Join Date
    May 2009
    Gender
    male
    Location
    Real World
    Posts
    6,940
    Reputation
    478
    Thanks
    1,752
    My Mood
    Bored
    You might more help in C++ section.. want me to move it and specify the game?
    [center]

    Back in '10



    Got a question?PM/VM me!
    I read them all.
    Also contact me via MSN.
    vlad@mpgh.net

    Minion since:07-04-2010
    Mod since:08-31-2010
    Till : 05.07.2011

  3. The Following User Says Thank You to B4M For This Useful Post:

    ♪~ ᕕ(ᐛ)ᕗ (09-10-2010)

  4. #3
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by B4M View Post
    You might more help in C++ section.. want me to move it and specify the game?
    you will be thanked!

  5. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    That ain't the only error >.> Your code is full of mistakes, I'm too lazy at the moment to fix them, but here's hints: NopMemory isn't defined, your 'if's are wrong(the bool checking that is) and probably more
    Ah we-a blaze the fyah, make it bun dem!

  6. #5
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by Hell_Demon View Post
    That ain't the only error >.> Your code is full of mistakes, I'm too lazy at the moment to fix them, but here's hints: NopMemory isn't defined, your 'if's are wrong(the bool checking that is) and probably more
    ok thank you so, so much for your time now let's get back to the compiler and start fixing......(if i can )

  7. #6
    CommandB's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    My Mood
    Bored
    completely different question but it fits in here i think...if not excuse pls ;S

    I'm trying to write a mod for mw2, but my problem is that i dont know how to initialize a new variable? is this at least possible with a mod?

    thx
    CommandB

  8. #7
    rathynia's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    Modern Warfare 2 Section.
    Posts
    457
    Reputation
    126
    Thanks
    538
    My Mood
    Aggressive
    Quote Originally Posted by CommandB View Post
    completely different question but it fits in here i think...if not excuse pls ;S

    I'm trying to write a mod for mw2, but my problem is that i dont know how to initialize a new variable? is this at least possible with a mod?

    thx
    CommandB
    try this:

    Code:
    for("Variable name" = "What ever you what it to be";;)
    {
    }
    Nothing Is "Impossible" For The Word Itself Says "I'm Possible".
    If you get a thank from me you better act like it's a reward, because I don't give them out easily.

    Computer Specs:
    Processor - AMD Athlon(tm) II X4 640 Processor 3.0 GHz (Not OverClocked)
    RAM - 8.0 GB
    OS - Microsoft Windows 7 Ultimate Edition 64-bit
    Video Card - GeForce GTX 550 Ti
    Video RAM 4.0 GB
    Pixel Shader version 5.0
    Vertex Shader version 5.0
    Sound Card - NVIDIA High Definition Audio
    Disk space - 1,640 GB

  9. #8
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by CommandB View Post
    completely different question but it fits in here i think...if not excuse pls ;S

    I'm trying to write a mod for mw2, but my problem is that i dont know how to initialize a new variable? is this at least possible with a mod?

    thx
    CommandB
    OMG you maked an question for a GSC script into the C++ section =/

Similar Threads

  1. I need help( Modern Warfare 2alteriwnet)
    By Palestinian in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 02-18-2011, 10:49 AM
  2. Modern WarFare 2 help
    By maro23 in forum Call of Duty Modern Warfare 2 Help
    Replies: 8
    Last Post: 06-25-2010, 02:57 AM
  3. [SOLED] Modern Warfare 2 Full Download Help?
    By Snype in forum Call of Duty Modern Warfare 2 Help
    Replies: 6
    Last Post: 06-04-2010, 11:11 AM
  4. NEED HELP! Modern Warfare 2 vip hack
    By vtpwner in forum Call of Duty Modern Warfare 2 Help
    Replies: 3
    Last Post: 02-20-2010, 12:44 PM
  5. Modern Warfare 2 Console Help
    By MasterJ in forum Call of Duty Modern Warfare 2 Help
    Replies: 7
    Last Post: 02-11-2010, 12:44 AM