What's the Problem?
help i got error.. im not sure with this i just follow the instruction from last post... which is the title of the topis is d3d no such file directory
PICTURE:



PICTURE:






#include <d3d9.h>
#include <d3dx9.h>
#include "Quelle.h"
#include "color.h"
#include "detour.h"
#include "int.h"
#include "Hacks.h"
#include "d3dmenu.h"
#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "D3DX9.LIB")
D3D9Menu *Bl4ck = NULL;
CD3DFont* pFont;
bool Color = true;
bool Create;
char *folder[] = {"[+]", "[-]"};
char *onoff[] = {"[OFF]", "[ON]"};
char *jump[] = {"[OFF]", "[500]", "[2500]", "[5000]"};
void RebuildMenu(void)
{
Bl4ck->AddFolder("Player Hacks", folder, &folder1, 2);
if (folder1)
{
Bl4ck->AddItem (" NoFallDamage",onoff, &CH_NDF, 2);
Bl4ck->AddItem (" SuperJump",onoff, &CH_SuperJump, 4);
}
{
Bl4ck->AddFolder("Server Hacks", folder, &folder2, 2);
if (folder2)
{
Bl4ck->AddItem (" 5th Slot",onoff, &CH_5thSlot, 2);
}
}
}
typedef HRESULT ( WINAPI* oPresent ) ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion);
oPresent pPresent;
HRESULT WINAPI myPresent ( LPDIRECT3DDEVICE9 pDevice, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
pFont = new CD3DFont("Arial", 8, D3DFONT_BOLD);
pFont->InitDeviceObjects(pDevice);
pFont->RestoreDeviceObjects();
if(Bl4ck == NULL)
{
Bl4ck = new D3D9Menu("Vanerv10 D3D");
}else{
Bl4ck->MenuShow(12,10,pFont,pDevice);
if(Bl4ck->Mmax==0) RebuildMenu();
Bl4ck->MenuNav();
}
Hacks();
delete pFont;
return pPresent(pDevice, pSourceRect, pDestRect, hDestWindowOverride, pDirtyRegion);
}
DWORD dwDrawindexedprimitive_ret;
HRESULT WINAPI myDrawIndexedPrimitive(LPDIRECT3DDEVICE9 pDevice, D3DPRIMITIVETYPE Type, UINT BaseVertexIndex, UINT MinVertexIndex, UINT NumVertices, UINT startIndex, UINT primCount)
{
LPDIRECT3DVERTEXBUFFER9 Stream_Data;
UINT Offset = 0;
UINT m_Stride = 0;
if(pDevice->GetStreamSource(0, &Stream_Data, &Offset, &m_Stride) == D3D_OK)
Stream_Data->Release();
//D3D Funcs
__asm
{
popad
jmp dwDrawindexedprimitive_ret;
}
}
int D3D(void)
{
HINSTANCE hD3D;
DWORD vTable[105];
hD3D=0;
do {
hD3D = GetModuleHandle("d3d9.dll");
if (!hD3D) Sleep(10);
} while(!hD3D);
if (D3Ddiscover((void *)&vTable[0],420)==0) return 0;
{
pPresent = (oPresent)DetourCreate((DWORD)vTable[17], (DWORD)myPresent,12);
Sleep(100);
}
return 0;
}
BOOL WINAPI DllMain(HMODULE hDll, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
{ HideModule(hDll);
EraseHeaders(hDll);
CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)D3D, NULL, NULL, NULL);
}
return TRUE;
}
#include "Addies.h"
void Hacks()
{
DWORD Player = *(DWORD*) ADR_PlayerPointer;
DWORD Server = *(DWORD*) ADR_ServerPointer;
if (Player != 0)
{
//PlayerHacks
if (CH_NFD == 1)
{
*(float*)(Player+OFS_NFD) = -20000;
}
if (CH_SuperJump !=0)
{
if (GetAsynKeyState (VK_Control)&1)
{
switch (CH_SuperJump)
{
case 1: *(float*)(Player+OFS_Y) = 500;break;
case 2: *(float*)(Player+OFS_Y) = 2500;break;
case 3: *(float*)(Player+OFS_Y) = 5000;
}}}
//PlayerHacks ends
}
if (Server != 0)
{
//ServerHacks
switch (5thSlot)
{
case 1: *(long*)(Server+Slot5) = 1;
}
//ServerHacks ends
}
}
//Folder int folder1 =0; int folder2 =0; //Items int CH_NDF =0; int CH_5thSlot =0; int CH_SuperJump =0;
1>------ Build started: Project: ELExTrO D3D, Configuration: Release Win32 ------
1>Compiling...
1>Base.cpp
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(13) : error C2065: 'CH_NFD' : undeclared identifier
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(20) : error C3861: 'GetAsynKeyState': identifier not found
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2059: syntax error : 'bad suffix on number'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2146: syntax error : missing ')' before identifier 'thSlot'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(34) : error C2059: syntax error : ')'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(35) : error C2065: 'thSlot' : undeclared identifier
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(35) : error C2143: syntax error : missing ';' before '{'
1>d:\mydocuments\my pictures\stock images\elextro d3d\elextro d3d\Hacks.h(36) : error C2046: illegal case
1>Build log was saved at "file://d:\MyDocuments\My Pictures\Stock Images\ELExTrO D3D\ELExTrO D3D\Release\BuildLog.htm"
1>ELExTrO D3D - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
void RebuildMenu(void)
{
Bl4ck->AddFolder("Player Hacks", folder, &folder1, 2);
if (folder1)
{
Bl4ck->AddItem (" NoFallDamage",onoff, &CH_NDF, 2);
Bl4ck->AddItem (" SuperJump",onoff, &CH_SuperJump, 4);
}
Bl4ck->AddFolder("Server Hacks", folder, &folder2, 2);
if (folder2)
{
Bl4ck->AddItem (" 5th Slot",onoff, &CH_5thSlot, 2);
}
}
int Slot5=0; int CH_NFD=0; int CH_SuperJump=0;
void Hacks()
{
DWORD Player = *(DWORD*) ADR_PlayerPointer;
DWORD Server = *(DWORD*) ADR_ServerPointer;
if (Player != 0)
{
//PlayerHacks
if (CH_NFD == 1)
{
*(float*)(Player+OFS_NFD) = -20000;
}
if (CH_SuperJump !=0)
{
if (GetAsyncKeyState(VK_CONTROL))
{
switch (CH_SuperJump)
{
case 1: *(float*)(Player+OFS_Y) = 500;break;
case 2: *(float*)(Player+OFS_Y) = 2500;break;
case 3: *(float*)(Player+OFS_Y) = 5000;
}}}
//PlayerHacks ends
}
if (Server != 0)
{
//ServerHacks
switch (Slot5)
{
case 1: *(long*)(Server+Slot5) = 1;
}
//ServerHacks ends
}
}
1>Base.cpp 1>.\Base.cpp(34) : error C2065: 'CH_5thSlot' : undeclared identifier 1>Build log was saved at "file://d:\MyDocuments\My Pictures\Stock Images\ELExTrO D3D\ELExTrO D3D\Release\BuildLog.htm" 1>ELExTrO D3D - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

