D3D Base problem!

Posts 115 of 20 · Page 1 of 2
D3D Base problem!
Hey guys, whenever i put my D3d Base together i get an error message! This is my Base completed please do not copy the base!
#include <windows.h>
#include <iostream>

using namespace std;

DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");

void main() {
Sleep(1000);

}
DWORD WINAPI Main(LPVOID) {
while(GetModuleHandleA("CShell.dll") == NULL ) {
Sleep(150);
}

bool onehitkill = true;
bool NoReload = true;


if(onehitkill){
for(int i=0 ; i<445 ; i++){
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = (float)999999999;
}
}
if (NoReload)
{
for (int i = 0; i < 445; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f;
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "SmartGold **HACKER** Hack.", "CrossFire Hack Z8games", 0);

}

return true;
}
The error message is this:
1>------ Build started: Project: SmartGold Pub v1, Configuration: Debug Win32 ------
1>LINK : error LNK2001: unresolved external symbol __DllMainCRTStartup@12
1>C:\Users\samuel\Documents\Visual Studio 2010\Projects\SmartGold Pub v1\Debug\SmartGold Pub v1.dll : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
HELP ME PLEASE!
Code:
if (NoReload)
{
for (int i = 0; i < 445; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f;
}
this is some of no grenade damage.
Quote Originally Posted by Swiftdude View Post
Code:
if (NoReload)
{
for (int i = 0; i < 445; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f;
}
this is some of no grenade damage.
I took that out and my code is this:
#include <windows.h>
#include <iostream>

using namespace std;

DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");

void main() {
Sleep(1000);

}
DWORD WINAPI Hacks(LPVOID)
{
bool oneshot = false;
while(1)
{
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");


if(oneshot)
{
for(int i=0 ; i<445 ; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(CShellBase + UPDATE ))+(4*i))) + 0x7F8) = FLT_MAX ;
}
}
}
}
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) {
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "Sucessfully Injected!", "Created by SmartGold!", 0);

}

return true;
}
Im still getting the same error!
Quote Originally Posted by Swiftdude View Post
Code:
if (NoReload)
{
for (int i = 0; i < 445; i++)
{
*(float*)( (*(DWORD*)((*(DWORD*)(dwCShell+0x30845C))+(4*i))) + 0x07F8) = 0.0f;
}
this is some of no grenade damage.
I bet he doesnt understand one of that code. He just leeched the code from onehit and instead of FLT_MAX or 99999 just 0.0f /
Or look at the addy xD
wait i know what ur doing wrong i will tell u in a min
Where do you see D3D in that ===
so what am i doing wrong?

Quote Originally Posted by Gab View Post
Where do you see D3D in that ===
this is my friends D3d base he let me use it to create my hack
man this not D3D their not even one D3D function there
I don't see D3D >.<
there still is no d3d in it
where is D3D?
I dont see any D3D function...
Im not proffessional but there isnt for sure D3D functions...like:
D3DCreateDevice or like that i've heard...
No d3d. So how is this a d3d problem?
It's not an D3D base.
The D3D base should look like this:
Code:
		sFPS[20]="xxx fps";
int		CH_cheats	  = 1;
int		CH_weap	   = 1;

int		Onehitkill	= 0;
int		No-reload   = 1; 


// none standard options
char *sStamina[] = { "Off","Stealth","Full" };

void RebuildMenu(void)
{
  strcpy(Mtitle,"== D3Dmenu by Victoria ==");
  MenuAddItem("[cheats]", Moptfolder, &CH_cheats, 2, MENUFOLDER);
  if (CH_cheats) {
	  MenuAddItem("Stamina"	 , sStamina  , &CH_stamina   , 3, MENUITEM);
	  MenuAddItem("Fast ammo"   , Moptonoff , &CH_fastammo  , 2, MENUITEM);
	  MenuAddItem("Fast health" , Moptonoff , &CH_fasthealth, 2, MENUITEM);
	  MenuAddItem("Fast repair" , Moptonoff , &CH_fastrepair, 2, MENUITEM);
	  MenuAddItem("Fast flag"   , Moptonoff , &CH_fastflag  , 2, MENUITEM);
  }
  MenuAddItem("[Weapons]", Moptfolder, &CH_weap, 2, MENUFOLDER);
  if (CH_weap) {
	  MenuAddItem("No spread"	 , Moptonoff , &CH_nospread, 2, MENUITEM);
	  MenuAddItem("No recoil"	 , Moptonoff , &CH_norecoil, 2, MENUITEM);
	  MenuAddItem("Unlimited ammo", Moptonoff , &CH_unlammo , 2, MENUITEM);
  }
  MenuAddItem("Framerate"		, (char **)sFPS , 0,0,MENUTEXT);
It's a bit diffrent, because changed the source.
I gonna make soon a tested and working menu base.
The Source, is for warrock, but you can change the name's and functions.
Quote Originally Posted by Victoria View Post
It's not an D3D base.
The D3D base should look like this:
Code:
		sFPS[20]="xxx fps";
int		CH_cheats	  = 1;
int		CH_weap	   = 1;

int		Onehitkill	= 0;
int		No-reload   = 1; 


// none standard options
char *sStamina[] = { "Off","Stealth","Full" };

void RebuildMenu(void)
{
  strcpy(Mtitle,"== D3Dmenu by Victoria ==");
  MenuAddItem("[cheats]", Moptfolder, &CH_cheats, 2, MENUFOLDER);
  if (CH_cheats) {
	  MenuAddItem("Stamina"	 , sStamina  , &CH_stamina   , 3, MENUITEM);
	  MenuAddItem("Fast ammo"   , Moptonoff , &CH_fastammo  , 2, MENUITEM);
	  MenuAddItem("Fast health" , Moptonoff , &CH_fasthealth, 2, MENUITEM);
	  MenuAddItem("Fast repair" , Moptonoff , &CH_fastrepair, 2, MENUITEM);
	  MenuAddItem("Fast flag"   , Moptonoff , &CH_fastflag  , 2, MENUITEM);
  }
  MenuAddItem("[Weapons]", Moptfolder, &CH_weap, 2, MENUFOLDER);
  if (CH_weap) {
	  MenuAddItem("No spread"	 , Moptonoff , &CH_nospread, 2, MENUITEM);
	  MenuAddItem("No recoil"	 , Moptonoff , &CH_norecoil, 2, MENUITEM);
	  MenuAddItem("Unlimited ammo", Moptonoff , &CH_unlammo , 2, MENUITEM);
  }
  MenuAddItem("Framerate"		, (char **)sFPS , 0,0,MENUTEXT);
It's a bit diffrent, because changed the source.
I gonna make soon a tested and working menu base.
The Source, is for warrock, but you can change the name's and functions.
Hans Menu
Guys... I cannot believe no one has pointed this out yet O.o He never creates a thread (the Main function) What you need to do is this:

Code:
CreateThread( NULL, 0, (LPTHREAD_START_ROUTINE)Main, NULL, NULL, NULL);
I will leave it up to you where to put it, but here's a hint:

Code:
BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { 
DisableThreadLibraryCalls(hDll);
if ( dwReason == DLL_PROCESS_ATTACH ) {
MessageBoxA(0, "SmartGold **HACKER** Hack.", "CrossFire Hack Z8games", 0);

}

return true;
}
Now I am not sure if that is where your error comes from, but make sure to create the hack thread!

EDIT: I also just noticed that in your original post, you are editing the same offset for 1 hit kill and no reload. So you are setting it to 9999999999999999.0f (or whatever) and then you are setting the same thing to 0.0f
Posts 115 of 20 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?