Code:void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, 1, BorderColor, pDevice ); }
Where it is the error?
The ErrorCode:#include "Base.h" #include "Menu.h" //Menu Position int menux = 20; int menuy = 200; //Hack Variables int test1 = 0; int test2 = 0; int test3 = 0; int test4 = 0; int test5 = 0; int test6 = 0; //Menu Groups int misc = 0; int removals = 0; int visual = 0; void cMenu::RenderMenu(void) { AddItem(" [ Visuals ]", Opt_Folder, &visual, 2, MENUFOLDER); if(visual){ AddItem("Visual One" , Opt_on_off , &test1 , 2, MENUITEM);// AddItem("Visual Two" , Opt_on_off , &test2 , 2 , MENUITEM);// } AddItem(" [ Removals ]", Opt_Folder, &removals, 2, MENUFOLDER); if (removals) { AddItem("Removal One" , Opt_on_off , &test3 , 2, MENUITEM);// AddItem("Removal Two" , Opt_on_off , &test4 , 2, MENUITEM);// } AddItem(" [ Misc ]", Opt_Folder, &misc, 2, MENUFOLDER); if(misc){ AddItem("Misc One" , Opt_on_off , &test5 , 2, MENUITEM);// AddItem("Misc Two" , Opt_on_off , &test6 , 2, MENUITEM);// } } cBase Base; void WINAPIV Push( const char* cmd ) { _asm { PUSH cmd MOV EAX, 0x00485DD0//Engine LTC CALL EAX ADD ESP, 0x4 } } void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice) { if(Directx.pFont == NULL) D3DXCreateFontA(pDevice, 15, 0, FW_BOLD, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont ); if (Mmax==0) Menu.RenderMenu(); if(Mvisible){ //DrawBox Here '-' DrawBox(50,10,160,760,Black,Green,pDevice); } Menu.MenuShow(menux,menuy,Directx.pFont); Menu.MenuNav(); } DWORD cBase::GetPointer(int index) { DWORD* devicePtr = ***(DWORD****)0x909EF8; if( devicePtr == NULL ) return 0; return devicePtr[index]; } bool cBase::IsGameReadyForHook(void) { if( GetModuleHandle( "d3d9.dll" ) != NULL && GetModuleHandle( "ClientFX.fxd" ) != NULL && GetModuleHandle( "CShell.dll" ) != NULL ) return true; return false; } DWORD WINAPI dwMainThread(LPVOID) { while ( !Base.IsGameReadyForHook() ) Sleep(iWaitTime); Directx.Hook(); return 0; } BOOL WINAPI DllMain ( HMODULE hDll, DWORD dwReason, LPVOID lpReserved ) { DisableThreadLibraryCalls(hDll); if ( dwReason == DLL_PROCESS_ATTACH ) { #ifdef LOG DeleteFile(LogPath); #endif CreateThread(NULL, NULL, dwMainThread, NULL, NULL, NULL); } return TRUE; }
I would have that to change the DrawBox for Something?Code:1>------ Build started: Project: CaBase, Configuration: Debug Win32 ------ 1>Compiling... 1>Base.cpp 1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\base.cpp(73) : error C3861: 'DrawBox': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Leo\Sources\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm" 1>CaBase - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Code:void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, 1, BorderColor, pDevice ); }
I add this in Menu.cpp I am?
Errors
Code:1>------ Build started: Project: CaBase, Configuration: Debug Win32 ------ 1>Compiling... 1>Menu.cpp 1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\menu.cpp(121) : error C3861: 'FillRGB': identifier not found 1>c:\documents and settings\administrador\meus documentos\leo\sources\hans & gellins base combined\cabase\menu.cpp(122) : error C3861: 'DrawBorder': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrador\Meus documentos\Leo\Sources\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm" 1>CaBase - 2 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
ohhhh the failure in this thread...
NOOBJr (02-15-2011)
Lol GTFO ******
Learn Somethin
Whit be polite, at least he is trying.
EDIT:Never Mind, i didn't look at the code.
Answer:
Add this to menu.cpp
Code:void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice ) { D3DRECT rec = { x, y, x + w, y + h }; pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 ); }Code:void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, (y + h - px), w, px, BorderColor, pDevice ); FillRGB( x, y, px, h, BorderColor, pDevice ); FillRGB( x, y, w, px, BorderColor, pDevice ); FillRGB( (x + w - px), y, px, h, BorderColor, pDevice ); }Here is some other functions that might come in handy:Code:void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice ) { FillRGB( x, y, w, h, BoxColor, pDevice ); DrawBorder( x, y, w, h, 1, BorderColor, pDevice ); }
D3D Functions- Credits CodeDemon
Strikex (02-16-2011)
whit++ (02-15-2011)
Oh gawd...
Last edited by master131; 02-15-2011 at 11:27 PM.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
being nice to copy-pasters is not very smart, it only encourages the activity...
NOOBJr (02-16-2011)
-xGhost- (02-16-2011)
[IMG]https://i714.photobucke*****m/albums/ww144/sandro911/ProXtremeSignature.png[/IMG]
[IMG]https://i714.photobucke*****m/albums/ww144/sandro911/Signature.png[/IMG]
NOOBJr (02-16-2011)
Actually, the people who don't spend their time learning but want to release hacks are the ones who want to be credited for doing shit. If they wanted it for the hack itself they would just go download it.
I really appreciate you helping someone who wants to take everyone's hard earned work and taking credit for it, I really do.