ExclamationMy Hack

Posts 1–15 of 25 · Page 1 of 2
My Hack
Ok so i'm almost done with my hack but if gives me this error when I try to build it. Plz help
I'm using Jeffs base.

Code:
1>------ Build started: Project: Hacks, Configuration: Debug Win32 ------
1>  dllmain.cpp
1>c:\users\badboy3\documents\noreload\hacks\hacks\dllmain.cpp(2): fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
delete "#include <stdafx.h>

put <windows.h>
Quote Originally Posted by Hexicidal2 View Post
delete "#include <stdafx.h>

put <windows.h>

I did that and it gave me this..


Code:
1>------ Build started: Project: Hacks, Configuration: Debug Win32 ------
1>  dllmain.cpp
1>  Hacks.cpp
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(1): warning C4627: '#include <windows.h>': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(37): warning C4627: '#include <windows.h>': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(78): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Do I have to make a new heder file with the name of StdAfx.h????
And How do I make it...
Quote Originally Posted by badboy3 View Post
I did that and it gave me this..


Code:
1>------ Build started: Project: Hacks, Configuration: Debug Win32 ------
1>  dllmain.cpp
1>  Hacks.cpp
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(1): warning C4627: '#include <windows.h>': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(37): warning C4627: '#include <windows.h>': skipped when looking for precompiled header use
1>          Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\badboy3\documents\new folder\hacks\hacks\hacks.cpp(78): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Do I have to make a new heder file with the name of StdAfx.h????
And How do I make it...
make and empty do it in dllmain and add #include <windows.h>
Quote Originally Posted by DaRk View Post
make and empty do it in dllmain and add #include <windows.h>
What do you mean?????
Make a new StdAfx.h header file......
Than put put #include <windows.h>?????
can you plz explain...Thnx
Quote Originally Posted by badboy3 View Post
What do you mean?????
Make a new StdAfx.h header file......
Than put put #include <windows.h>?????
can you plz explain...Thnx
add the code in dllmain
Try make a empty project.

Edit:
Oh didn't see that you use a base....As other's says,delete the error include file
thats right
This is exactly what pisses me off. This idiot doesn't even know how to make an empty dll project, yet he somehow has "hack source". Absolutely not. He is a leecher and idiots like you screw up this section. It used to be a place where coders would get together and discuss things together, but now it's full of stupid leechers and people who think they're all hardcore cuz they can c&p code. I just had to get this out there and hopefully admins will do something about this. Idk what but i feel something should be done. This section needs a lot of cleaning.
Quote Originally Posted by 258456 View Post
This is exactly what pisses me off. This idiot doesn't even know how to make an empty dll project, yet he somehow has "hack source". Absolutely not. He is a leecher and idiots like you screw up this section. It used to be a place where coders would get together and discuss things together, but now it's full of stupid leechers and people who think they're all hardcore cuz they can c&p code. I just had to get this out there and hopefully admins will do something about this. Idk what but i feel something should be done. This section needs a lot of cleaning.

bro chill off and go walk it off.........I know how to make a empty dll project "FYI" ....I did what he said but it still gives me an error....know what do you want know??????

---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------

Quote Originally Posted by DaRk View Post
add the code in dllmain
I did add #include <windows.h> in dll main?????
Quote Originally Posted by badboy3 View Post
bro chill off and go walk it off.........I know how to make a empty dll project "FYI" ....I did what he said but it still gives me an error....know what do you want know??????

---------- Post added at 05:58 AM ---------- Previous post was at 05:57 AM ----------



I did add #include <windows.h> in dll main?????

Bro, you didn't understand my point. My point is if you don't know c++ don't try to come here and ask people to give u working code. And you don't even know what that code up there means. There are things missing like the address for where the player class start so you can initialize your reversed class and you don't even have a hook so this is pointless. That's my point.
create new project! empty. and paste your code
Quote Originally Posted by matheusgtx View Post
create new project! empty. and paste your code

I did ????


Here is the code giving Jeff his credits....



Code:
#include "Hacks.h"
#include<windows.h>
#define WeaponMgr 0xA68F90
#define NoReload 0x269C
cHacks* Hacks;

cHacks::cHacks()
{
	DWORD CShell = (DWORD) GetModuleHandleA("CShell.dll");
	if(!CShell) return;

	dwWeaponMgr = *(DWORD*)GetAddressFromOffset(CShell, WeaponMgrOffset);
	dwWallMgr	= *(DWORD*)GetAddressFromOffset(CShell, WallMgrOffset);
	dwPlayerMgr = *(DWORD*)GetAddressFromOffset(CShell, PlayerMgrOffset);
	dwPlayerInfo= *(DWORD*)GetAddressFromOffset(CShell, PlayerInfoOffset);

	if(dwWeaponMgr && dwWallMgr && dwPlayerMgr && dwPlayerInfo) 
	{
		for(int i = 0; i < 560; i++)
		{
			DWORD Weapon = *(DWORD*)GetAddressFromOffset(dwWeaponMgr, (4*i));
			if(Weapon) 
			{
				*(float*)GetAddressFromOffset(Weapon, WeaponMgr->ChangeWeaponAnimRatio) = 9999;
				*(float*)GetAddressFromOffset(Weapon, WeaponMgr->ReloadAnimRatio) = 999;
			}
		}
	}
	else 
		return;
}




bool InstantReload = true; 

if(GetAsyncKeyState(VK_F1)&1) onehit = true; 

if(InstantReload);
{
if (pWeaponMgr) 
{
for(int i=0; i<560; i++) 
{
if((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr))+(4*i)) ) != NULL) 
*(float*)((*(DWORD*)((*(DWORD*)(CShell+WeaponMgr)) +(4*i))) + NoReload) = 150; 
}
}
}

bool cHacks::ReadyForHacks()
{
	if(GetModuleHandleA("CShell.dll") != NULL && GetModuleHandleA("ClientFX.fxd") != NULL && GetModuleHandleA("crossfire.exe") != NULL)
		return true;
	return false;
}

DWORD cHacks::GetAddressFromOffset(DWORD Base, DWORD Offset)
{
	if(Base)
		return (Base + Offset);
	else
		return NULL;
}


And the error is:


Code:
1>------ Build started: Project: reload, Configuration: Debug Win32 ------
1>  Hacks.cpp
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(24): error C2227: left of '->ChangeWeaponAnimRatio' must point to class/struct/union/generic type
1>          type is 'int'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(25): error C2227: left of '->ReloadAnimRatio' must point to class/struct/union/generic type
1>          type is 'int'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(38): error C2059: syntax error : 'if'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(40): error C2059: syntax error : 'if'
1>c:\users\badboy3\documents\ha,cks\hacks.cpp(41): error C2447: '{' : missing function header (old-style formal list?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


---------- Post added at 03:50 PM ---------- Previous post was at 03:46 PM ----------

Quote Originally Posted by 258456 View Post
Bro, you didn't understand my point. My point is if you don't know c++ don't try to come here and ask people to give u working code. And you don't even know what that code up there means. There are things missing like the address for where the player class start so you can initialize your reversed class and you don't even have a hook so this is pointless. That's my point.
no no no bro....you did not get my point....I asked for help not for working code.... Those are 2 different things!!!
Quote Originally Posted by Paul View Post


leecher's coming...
come down man I'm only 15 years old...go slow on people....
Posts 1–15 of 25 · Page 1 of 2

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us