DrawBox Help.

Posts 115 of 19 · Page 1 of 2
DrawBox Help.
Where it is the error?
Code:
#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;
}
The Error
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 ==========
I would have that to change the DrawBox for Something?
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...
Lol GTFO ******
Learn Somethin
Quote Originally Posted by whit++ View Post
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 );
}
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 );
}
Here is some other functions that might come in handy:
D3D Functions- Credits CodeDemon
Quote Originally Posted by NOOBJr View Post
Whit be polite, at least he is trying.
He trying to C&P so you sir STFU
Quote Originally Posted by NOOBJr View Post
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 );
}
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 );
}
Here is some other functions that might come in handy:
D3D Functions- Credits CodeDemon
STOP FEEDING THE FOGGATS!!11!!
being nice to copy-pasters is not very smart, it only encourages the activity...
Quote Originally Posted by freedompeace View Post
being nice to copy-pasters is not very smart, it only encourages the activity...
damnnnn right
you gotta pimp my ride
Quote Originally Posted by NOOB View Post


STOP FEEDING THE FOGGATS!!11!!
NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box
Quote Originally Posted by NOOBJr View Post
NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box
Finally someone to stand up to the people who don't care about others, when truly they were the same way.
Quote Originally Posted by NOOBJr View Post
NO, I'm helping someone in need. You guyz are acting like im giving away your life. Hacking maybe your life but not to others they dont have time to spend 325325235345 hours on the computer. Its jsut a friqqin draw box
Feed a leecher once you feed him forever
Quote Originally Posted by -xGhost- View Post
Finally someone to stand up to the people who don't care about others, when truly they were the same way.
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.
Posts 115 of 19 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Need help?