You might more help in C++ section.. want me to move it and specify the game?
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:
and: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
can someone help me please?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
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
♪~ ᕕ(ᐛ)ᕗ (09-10-2010)
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!
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
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