Question[Help] Base combined

Posts 114 of 14 · Page 1 of 1
[Help] Base combined
Hello i need help fix some mistakes could me help


Base.cpp
#include "Base.h"
#include "Menu.h"

//Menu Position
int menux = 20;
int menuy = 200;

//Hack Variables
int HACK1 = 0;
int HACK2 = 0;
int HACK3 = 0;
int HACK4 = 0;

//Menu Groups
int removals = 0;
int visual = 0;

void cMenu::RenderMenu(void)
{
AddItem(" [ Visuals ]", Opt_Folder, &visual, 2, MENUFOLDER);
if(visual){
AddItem("No Recoil" , Opt_on_off , &HACK1 , 2, MENUITEM);//
AddItem("No Reload" , Opt_on_off , &HACK2 , 2 , MENUITEM);//
}

AddItem(" [ Removals ]", Opt_Folder, &removals, 2, MENUFOLDER);
if (removals) {
AddItem("GlassWalls" , Opt_on_off , &HACK3 , 2, MENUITEM);//
AddItem("SuperBullet" , Opt_on_off , &HACK4 , 2, MENUITEM);//
}
}


cBase Base;

void __cdecl cBase::PushToConsole(const char* szCommand )
{
DWORD dwCShell = (DWORD)GetModuleHandleA("CShell.dll");
if( dwCShell != NULL )
{
DWORD *LTClient = ( DWORD* )( 0x377E7810 );
void* CONoff = ( void* )*( DWORD* )( *LTClient + 0x208 );
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
}

void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
{
if( HACK1 > 0 ){
memcpy(( void* )( 0x37460820 ), "\xD8\x66\x54", 4 );
memcpy(( void* )( 0x3723300C ), "\xD9\x5E\x54", 4 );
memcpy(( void* )( 0x37460834 ), "\xD9\x46\x48", 4 );
memcpy(( void* )( 0x37460837 ), "\xD9\x5E\x48", 4 );
}else{
memcpy(( void* )( 0x37460820 ), "\x90\x90\x90\x90", 4);
memcpy(( void* )( 0x3723300C ), "\x90\x90\x90\x90", 4);
memcpy(( void* )( 0x37460834 ), "\x90\x90\x90\x90", 4);
memcpy(( void* )( 0x37460837 ), "\x90\x90\x90\x90", 4);
}
if( HACK2 > 0 ){
memcpy(( void* )( 0x374AC544 ), "\x0F\x84\xB1\x01\x00\x00", 6 );
}else{
memcpy(( void* )( 0x374AC544 ), "\x90\x90\x90\x90\x90\x90", 6 );
}

if( HACK3 > 0 ){
memcpy((void*)(0x5721EA), "\x6A\x00", 2);
} else {
memcpy((void*)(0x5721EA), "\x6A\x01", 2);
}

if( HACK4 > 0 ){
memcpy((LPVOID)0x374A7246, "\x90\x90\x90", 3);
}else{
memcpy((LPVOID)0x374A7246, "\x0F\x94\xC0", 3);
}


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){
//Do You Gui/Drawbox Here
}

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;
}

My erros
------ Build started: Project: CaBase, Configuration: Debug Win32 ------
Compiling...
Base.cpp
c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(109) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [9]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(110) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\administrador\desktop\hans & gellins base combined\cabase\base.cpp(111) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'const char [11]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Build log was saved at "file://c:\Documents and Settings\Administrador\Desktop\Hans & Gellins Base Combined\CaBase\Debug\BuildLog.htm"
CaBase - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
OK...

Change Unicode setting to Multibye
Friend tells me where I have are harder to change because
Wrong section.....

and i would tell you how but they invented a thing called Google and The Search bar!!!!!!!!!!
Quote Originally Posted by cosconub View Post
Wrong section.....

and i would tell you how but they invented a thing called Google and The Search bar!!!!!!!!!!
Well some people to help, but if you don't want to please don't post?
....
Quote Originally Posted by Nubzgetkillz View Post
Well some people to help, but if you don't want to please don't post?
....
Thank you Jesus....
He probably doesn't even know how to fix it, probably just wanted post count or to make someone feel bad... So Sad...
Thank you thank you friend
Wrong section.
Chance character set to multibyte (Project > Properties > Configuration Properties > General > Character set > Use multibyte Character Set > Apply > Ok)
Quote Originally Posted by Capevaldo View Post
Wrong section.
Chance character set to multibyte (Project > Properties > Configuration Properties > General > Character set > Use multibyte Character Set > Apply > Ok)
Do that.. and please.. stop posting so many of these help threads....
it is not funny anymore
i swear i move 2 of these every day --____--
Quote Originally Posted by AVGN View Post
i swear i move 2 of these every day --____--
Correct and I thought it was more than two?
Unibyte to Multibyte, there is a tutorial posted a month ago, use the search button. I recommend removing your code as noobs are seeing you codes (such as super bullet)
LEARN FUCKING C++ BEFORE YOU TRY TO MAKE A HACK AND STOP FUCKING MAKING COUNTLESS GOD DAMN HELP THREADS NOW GET YOUR ASS A BOOK AND DONT MAKE ONE MORE FUCKING THREAD UNTIL YOU READ IT!!!!!!!!!!!!!!!
nuff said
Posts 114 of 14 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?