Results 1 to 8 of 8
  1. #1
    jayden1212's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    www.MPGH.net
    Posts
    235
    Reputation
    15
    Thanks
    31
    My Mood
    Blah

    Errors In D3D Hack!

    Today, I've been working on a D3D hack, from a D3D base, of course, and I seem to be coming across multiple compiling errors on C++. I have decided to re-become semi-active on this forum, and make hacks for it ^_^. I just need to get through this, because there are 30+ compiling errors. I fix a couple, then some more pop up. Some of them don't even make sense because, as a junior coder, it feels that when certain compiling errors come up, the don't make sense. I am in dire need of help, so I can get this hack tested, add a couple more hacks, and release it on MPGH.

  2. #2
    Zithium's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    UK
    Posts
    2,996
    Reputation
    103
    Thanks
    438
    My Mood
    Psychedelic
    Could you do us a favor and post your code/errors? Or would you prefer we use our telepathic powers to see your code from here?
    "Depending on the context, I may or may not enjoy getting stoned to death" - zιтнιυм™

    Ex WarRock Minion Force



  3. #3
    jayden1212's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    www.MPGH.net
    Posts
    235
    Reputation
    15
    Thanks
    31
    My Mood
    Blah
    heh heh, sorry -.-'

    Code:
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(8) : error C2275: 'DWORD' : illegal use of this type as an expression
    1>        C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\windef.h(152) : see declaration of 'DWORD'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(8) : error C2146: syntax error : missing ';' before identifier 'Server'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(8) : error C2065: 'Server' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(10) : error C2059: syntax error : 'if'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(11) : error C2143: syntax error : missing ';' before '{'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(24) : error C2065: 'CH_Superjump' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(26) : error C2065: 'vKey_Control' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(37) : error C2059: syntax error : '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(37) : error C2143: syntax error : missing ';' before '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(37) : error C2059: syntax error : '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(40) : error C2143: syntax error : missing ';' before '{'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(40) : error C2447: '{' : missing function header (old-style formal list?)
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(61) : error C2059: syntax error : '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(61) : error C2143: syntax error : missing ';' before '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\Hacks.h(61) : error C2059: syntax error : '}'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(17) : error C2143: syntax error : missing ';' before '{'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(17) : error C2447: '{' : missing function header (old-style formal list?)
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(23) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(45) : error C2143: syntax error : missing ';' before '*'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(45) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(45) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(36) : error C2065: 'MENU' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(36) : error C2059: syntax error : ')'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(37) : error C2065: 'MENU' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(37) : error C2059: syntax error : ')'
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(40) : error C2065: 'MENU' : undeclared identifier
    1>c:\users\dustin\downloads\warrock\my hacks\elextro d3d\elextro d3d\d3dmenu.h(41) : error C2065: 'MENU' : undeclared identifier
    1>.\Base.cpp(64) : error C2601: 'myPresent' : local function definitions are illegal
    1>        .\Base.cpp(41): this line contains a '{' which has not yet been matched
    1>.\Base.cpp(87) : error C2601: 'GenerateTexture' : local function definitions are illegal
    1>        .\Base.cpp(41): this line contains a '{' which has not yet been matched
    1>.\Base.cpp(111) : error C2601: 'myDrawIndexedPrimitive' : local function definitions are illegal
    1>        .\Base.cpp(41): this line contains a '{' which has not yet been matched
    1>.\Base.cpp(437) : error C2601: 'D3D' : local function definitions are illegal
    1>        .\Base.cpp(41): this line contains a '{' which has not yet been matched
    1>.\Base.cpp(460) : error C2601: 'DllMain' : local function definitions are illegal
    1>        .\Base.cpp(41): this line contains a '{' which has not yet been matched
    1>.\Base.cpp(468) : fatal error C1075: end of file found before the left brace '{' at '.\Base.cpp(41)' was matched
    1>Build log was saved at "file://c:\Users\Dustin\Downloads\WarRock\My Hacks\ELExTrO D3D\ELExTrO D3D\Release\BuildLog.htm"
    1>DraX D3D - 33 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  4. #4
    Zithium's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    UK
    Posts
    2,996
    Reputation
    103
    Thanks
    438
    My Mood
    Psychedelic
    Post your code lol.
    "Depending on the context, I may or may not enjoy getting stoned to death" - zιтнιυм™

    Ex WarRock Minion Force



  5. #5
    jayden1212's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    www.MPGH.net
    Posts
    235
    Reputation
    15
    Thanks
    31
    My Mood
    Blah
    Alrighty, here it is:

    Base.cpp:
    Code:
    #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")
    
    LPDIRECT3DTEXTURE9 sRed,sYellow,sGreen,sBlue,sPurple,sPink,sOrange,sBlack,sWhite,sGrey,sCyan;
    D3D9Menu *Bl4ck = NULL;
    CD3DFont*  pFont;
    
    bool Color = true;
    bool Create;
    
    char *folder[]	= {"[+]", "[-]"};
    char *onoff[]	= {"[OFF]", "[ON]"};
    char *jump[]	= {"[OFF]", "[500]", "[1000]", "[1500]", "[2000]", "[2500]"};
    char *cham2[]	= {"[OFF]", "[Normal]", "[Light]", "[Pro]"};
    char *cham[]	= {"[OFF]", "[Red]", "[Yellow]", "[Green]", "[Blue]", "[Purple]", "[Pink]", "[Orange]", "[Black]", "[White]", "[Grey]", "[Cyan]"};
    
    void RebuildMenu(void)
       {
       Bl4ck->AddFolder("D3D Hacks", folder, &folder1, 2);
       if (folder1)
       {
       Bl4ck->AddItem	 (" Chams",cham2, &CH_Chams, 4);
       Bl4ck->AddItem	 ("  Back",cham, &CH_ChamsColorA, 12);
       Bl4ck->AddItem	 ("  Front",cham, &CH_ChamsColorB, 12);
    }
       {
       Bl4ck->AddFolder("Player Hacks", folder, &folder2, 2);
       if (folder2)
       {
       Bl4ck->AddItem	 (" NFD",onoff, &CH_NFD, 2);
       Bl4ck->AddItem	 (" Super Jump",jump, &CH_SuperJump, 6);
    }
       {
       Bl4ck->AddFolder("Server Hacks", folder, &folder3, 2);
       if (folder3)
       {
       Bl4ck->AddItem	 (" 5th Slot",onoff, &CH_Slot5, 2);
       Bl4ck->AddItem	 (" 6th Slot",onoff, &CH_Slot6, 2);
       Bl4ck->AddItem	 (" 7th Slot",onoff, &CH_Slot7, 2);
       Bl4ck->AddItem	 (" 8th Slot",onoff, &CH_Slot8, 2);
    }
       {
       Bl4ck->AddFolder("Vehicle Hacks", folder, &folder4, 2);
       if (folder4)
       {
       Bl4ck->AddItem	 (" Vehicle Chams",onoff, &CH_ChamsSet, 3);
       Bl4ck->AddItem	 ("  Back",cham, &CH_ChamsSetA, 12);
       Bl4ck->AddItem	 ("  Front",cham, &CH_ChamsSetB, 12);
    }
    }
    
    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("DraX 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);
    }
    
    HRESULT GenerateTexture(IDirect3DDevice9 *pD3Ddev, IDirect3DTexture9 **ppD3Dtex, DWORD colour32)
    {
    	if( FAILED(pD3Ddev->CreateTexture(8, 8, 1, 0, D3DFMT_A4R4G4B4, D3DPOOL_MANAGED, ppD3Dtex, NULL)) )
    		return E_FAIL;
    
    	WORD colour16 = ((WORD)((colour32>>28)&0xF)<<12)
    					|(WORD)(((colour32>>20)&0xF)<<8)
    					|(WORD)(((colour32>>12)&0xF)<<4)
    					|(WORD)(((colour32>>4)&0xF)<<0);
    
    	D3DLOCKED_RECT d3dlr;
    	(*ppD3Dtex)->LockRect(0, &d3dlr, 0, 0);
    	WORD *pDst16 = (WORD*)d3dlr.pBits;
    
    	for(int xy=0; xy < 8*8; xy++)
    		*pDst16++ = colour16;
    
    	(*ppD3Dtex)->UnlockRect(0);
    
    	return S_OK;
    }
    
    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();
    
      	if(Color)
    	{
    		GenerateTexture(pDevice, &sRed,		RED);
    		GenerateTexture(pDevice, &sYellow,	YELLOW);
    		GenerateTexture(pDevice, &sGreen,	GREEN);
    		GenerateTexture(pDevice, &sBlue,	BLUE);
    		GenerateTexture(pDevice, &sPurple,	PURPLE);
    		GenerateTexture(pDevice, &sPink,	PINK);
    		GenerateTexture(pDevice, &sOrange,	ORANGE);
    		GenerateTexture(pDevice, &sBlack,	BLACK);
    		GenerateTexture(pDevice, &sWhite,	WHITE);
    		GenerateTexture(pDevice, &sGrey, 	GREY);
    		GenerateTexture(pDevice, &sCyan , 	CYAN);
    		Color = false;
    	}
    //D3D Funcs
    //Light Ambient, Adjustable
    	if (CH_LightChams==1)
    	{
    	pDevice->SetRenderState(D3DRS_LIGHTING, false);
    	pDevice->SetRenderState(D3DRS_AMBIENT, D3DCOLOR_ARGB(255,255,255,255));
    	}else{
    	pDevice->SetRenderState(D3DRS_AMBIENT, false);
    	}
    
    
    //With Weapon
    if(CH_Chams==1)
    		{
    			if(CH_ChamsColorA || !CH_ChamsColorA)
    			{
    				if(m_Stride == 36)
    				{
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    					if(CH_ChamsColorA==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorA==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorA==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorA==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorA==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorA==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorA==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorA==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorA==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorA==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorA==11){pDevice->SetTexture(0, sCyan);}
    					myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    				}
    				if(m_Stride == 32)
    				{
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    					if(CH_ChamsColorA==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorA==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorA==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorA==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorA==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorA==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorA==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorA==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorA==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorA==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorA==11){pDevice->SetTexture(0, sCyan);}
    					myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    				}
    			}
    		}
    	if(CH_Chams==1)
    		{
    			if(CH_ChamsColorB || !CH_ChamsColorB)
    			{
    					if(m_Stride== 36){
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    					if(CH_ChamsColorB==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorB==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorB==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorB==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorB==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorB==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorB==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorB==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorB==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorB==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorB==11){pDevice->SetTexture(0, sCyan);}
    				}
    					if(m_Stride== 32){
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    					if(CH_ChamsColorB==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorB==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorB==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorB==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorB==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorB==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorB==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorB==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorB==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorB==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorB==11){pDevice->SetTexture(0, sCyan);}
    				}
    			}
    		}
    
    	//Without Weapon
    	if(CH_Chams==2)
    		{
    			if(CH_ChamsColorA || !CH_ChamsColorA)
    			{
    				if(m_Stride == 36)
    				{
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    					if(CH_ChamsColorA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    					if(CH_ChamsColorA==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorA==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorA==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorA==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorA==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorA==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorA==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorA==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorA==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorA==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorA==11){pDevice->SetTexture(0, sCyan);}
    					myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    				}
    			}
    		}
    	if(CH_Chams==2)
    		{
    
    
    			if(CH_ChamsColorB || !CH_ChamsColorB)
    			{
    					if(m_Stride== 36){
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    					if(CH_ChamsColorB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    					if(CH_ChamsColorB==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsColorB==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsColorB==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsColorB==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsColorB==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsColorB==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsColorB==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsColorB==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsColorB==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsColorB==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsColorB==11){pDevice->SetTexture(0, sCyan);}
    				}
    			}
    		}
    
    		//Vehicle Chams
    	if(CH_ChamsSet==2)
    	{
    		if(CH_ChamsSetA || !CH_ChamsSetA)
    		{
    			if(m_Stride == 44)
    			{
    				if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    				if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    				if(CH_ChamsSetA==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetA==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetA==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetA==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetA==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetA==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetA==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetA==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetA==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetA==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetA==11){pDevice->SetTexture(0, sCyan);}
    				myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    			}
    			if(m_Stride == 44)
    			{
    				if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    				if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    				if(CH_ChamsSetA==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetA==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetA==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetA==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetA==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetA==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetA==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetA==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetA==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetA==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetA==11){pDevice->SetTexture(0, sCyan);}
    				myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    			}
    		}
    	}
    if(CH_ChamsSet==1)
    	{
    		if(CH_ChamsSetB || !CH_ChamsSetB)
    		{
    				if(m_Stride== 44){
    				if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    				if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    				if(CH_ChamsSetB==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetB==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetB==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetB==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetB==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetB==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetB==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetB==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetB==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetB==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetB==11){pDevice->SetTexture(0, sCyan);}
    			}
    				if(m_Stride== 44){
    				if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    				if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    				if(CH_ChamsSetB==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetB==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetB==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetB==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetB==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetB==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetB==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetB==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetB==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetB==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetB==11){pDevice->SetTexture(0, sCyan);}
    			}
    		}
    	}	
    
    
    	if(CH_ChamsSet==1)
    		{
    			if(CH_ChamsSetA || !CH_ChamsSetA)
    			{
    				if(m_Stride == 44)
    				{
    					if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    					if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    					if(CH_ChamsSetA==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsSetA==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsSetA==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsSetA==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsSetA==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsSetA==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsSetA==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsSetA==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsSetA==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsSetA==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsSetA==11){pDevice->SetTexture(0, sCyan);}
    					myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    				}
    				if(m_Stride == 44)
    				{
    					if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_LIGHTING,false);
    					if(CH_ChamsSetA) pDevice->SetRenderState(D3DRS_ZENABLE,false);
    					if(CH_ChamsSetA==1){pDevice->SetTexture(0, sRed);}
    					if(CH_ChamsSetA==2){pDevice->SetTexture(0, sYellow);}
    					if(CH_ChamsSetA==3){pDevice->SetTexture(0, sGreen);}
    					if(CH_ChamsSetA==4){pDevice->SetTexture(0, sBlue);}
    					if(CH_ChamsSetA==5){pDevice->SetTexture(0, sPurple);}
    					if(CH_ChamsSetA==6){pDevice->SetTexture(0, sPink);}
    					if(CH_ChamsSetA==7){pDevice->SetTexture(0, sOrange);}
    					if(CH_ChamsSetA==8){pDevice->SetTexture(0, sBlack);}
    					if(CH_ChamsSetA==9){pDevice->SetTexture(0, sWhite);}
    					if(CH_ChamsSetA==10){pDevice->SetTexture(0, sGrey);}
    					if(CH_ChamsSetA==11){pDevice->SetTexture(0, sCyan);}
    					myDrawIndexedPrimitive(pDevice, Type, BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
    				}
    			}
    		}
    	if(CH_ChamsSet==1)
    		{
    			if(CH_ChamsSetB || !CH_ChamsSetB)
    			{
    					if(m_Stride== 44){
    					if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    					if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    					if(CH_ChamsSetB==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetB==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetB==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetB==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetB==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetB==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetB==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetB==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetB==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetB==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetB==11){pDevice->SetTexture(0, sCyan);}
    				}
    					if(m_Stride== 44){
    					if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_LIGHTING,  false);
    					if(CH_ChamsSetB)pDevice->SetRenderState(D3DRS_ZENABLE,   true);
    					if(CH_ChamsSetB==1){pDevice->SetTexture(0, sRed);}
    				if(CH_ChamsSetB==2){pDevice->SetTexture(0, sYellow);}
    				if(CH_ChamsSetB==3){pDevice->SetTexture(0, sGreen);}
    				if(CH_ChamsSetB==4){pDevice->SetTexture(0, sBlue);}
    				if(CH_ChamsSetB==5){pDevice->SetTexture(0, sPurple);}
    				if(CH_ChamsSetB==6){pDevice->SetTexture(0, sPink);}
    				if(CH_ChamsSetB==7){pDevice->SetTexture(0, sOrange);}
    				if(CH_ChamsSetB==8){pDevice->SetTexture(0, sBlack);}
    				if(CH_ChamsSetB==9){pDevice->SetTexture(0, sWhite);}
    				if(CH_ChamsSetB==10){pDevice->SetTexture(0, sGrey);}
    				if(CH_ChamsSetB==11){pDevice->SetTexture(0, sCyan);}
    				}
    			}
    		}
    
     __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;
    }
    Addies.h:
    Code:
    //Pointer, Bases
    #define ADR_PLAYERPOINTER 0x00ABD750
    #define ADR_SERVERPOINTER 0x009B7EA8
    
    //Hacks
    #define OFS_NFD 0x00102C4
    #define OFS_5SLOT 0x001021A4
    #define OFS_6SLOT 0x001021A5
    #define OFS_7SLOT 0x001021A6
    #define OFS_8SLOT 0x001021A7
    #define OFS_Z 0x00102E8
    int.h
    Code:
    //Folder
    int folder1			=0;
    int folder2			=0;
    int folder3			=0;
    int folder4			=0;
    
    //Items
    int CH_Chams		=0;
    int CH_ChamsColorA	=0;
    int CH_ChamsColorB	=0;
    
    int CH_ChamsSet		=0;
    int CH_ChamsSetA	=0;
    int CH_ChamsSetB	=0;
    
    int CH_LightChams	=0;
    
    int CH_NFD			=0;
    int CH_SuperJump	=0;
    
    int CH_Slot5		=0;
    int CH_Slot6		=0;
    int CH_Slot7		=0;
    int CH_Slot8		=0;
    
    int CH_
    Hacks.h
    Code:
    #include "Addies.h"
    #define ADR_PlayerPointer
    #define ADR_ServerPointer
    
    ;void Hacks()
    {
    	DWORD Player = *(DWORD*) ADR_PlayerPointer
    	DWORD Server = *(DWORD*) ADR_ServerPointer
    
    		if (D3D != 0)
    	{
    		//********
    		//******** ends
    	}
    
    	if (Player != 0)
    	{
    		//PlayerHacks
    		if (CH_NFD == 1)
    		{
    			*(float*)(Player+OFS_NFD) = -20000;
    		}
    
    		if (CH_Superjump !=0)
    		{
    			if(GetAsyncKeyState ( vKey_Control)&1)
    			{
    				switch (CH_SuperJump)
    				{
    				case 1: *(float*)(Player+OFS_Z) = 500;break;
    					case 2: *(float*)(Player+OFS_Z) = 1000;break;
    						case 3: *(float*)(Player+OFS_Z) = 1500;break;
    							case 4: *(float*)(Player+OFS_Z) = 2000;break;
    								case 5: *(float*)(Player+OFS_Z) = 2500;
    				}}}}}
    		//PlayerHacks ends
    	}
    
    	if (Server != 0)
    	{
    		//ServerHacks
    		switch (CH_Slot5)
    		{
    		case 1: *(long*)(Server+Slot5) = 1;
    		}
    		switch (CH_Slot6)
    		{
    		case 1: *(long*)(Server+Slot6) = 1;
    		}
    		switch (CH_Slot7)
    		{
    		case 1: *(long*)(Server+Slot7) = 1;
    		}
    		switch (CH_Slot8)
    		{
    		case 1: *(long*)(Server+Slot8) = 1;
    		}
    		//ServerHacks ends
    	}
    
    }
    I gues that is the main stuff you need. If you need anything else, tell me.

  6. #6
    Zithium's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    UK
    Posts
    2,996
    Reputation
    103
    Thanks
    438
    My Mood
    Psychedelic
    Honestly, it's hard to say since I don't know @ which line of code the errors are pointing to
    "Depending on the context, I may or may not enjoy getting stoned to death" - zιтнιυм™

    Ex WarRock Minion Force



  7. #7
    jayden1212's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Location
    www.MPGH.net
    Posts
    235
    Reputation
    15
    Thanks
    31
    My Mood
    Blah
    Thanks for trying, I got a friend helping me with it later anyways.

  8. #8
    Terell.'s Avatar
    Join Date
    Oct 2009
    Gender
    male
    Location
    JAMAICAA
    Posts
    6,923
    Reputation
    273
    Thanks
    1,163
    My Mood
    Angry
    Do you have the bool and thread in there ?

    Warrock Minion 8-13-2011 - N/A
    A.V.A Minion since 11-1-11 - 11-12-11

Similar Threads

  1. [HELP ERROR]D3D Hack V1.0
    By AeroMan in forum C++/C Programming
    Replies: 7
    Last Post: 12-05-2009, 03:45 PM
  2. New D3D Hack has been released!
    By Dave84311 in forum Hack/Release News
    Replies: 23
    Last Post: 05-29-2009, 08:02 AM
  3. D3D hacks? Or fix OpenGL?
    By Cataldo in forum CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) Hacks
    Replies: 5
    Last Post: 02-08-2009, 05:27 AM
  4. ::.Undetected D3D Hack.::
    By WHX in forum Trade Accounts/Keys/Items
    Replies: 2
    Last Post: 11-30-2007, 02:39 PM
  5. D3D Hack (Old)
    By PBFUCKER in forum WarRock - International Hacks
    Replies: 10
    Last Post: 06-09-2007, 09:00 AM