Brain lock :(
I have no idea why, but my menu will not show up when i inject my hack. I've had this error before, and fixed it. But I'm having a brain lock and can't remember what the error was! If you could please tell me why that'd be great. Also, please don't rage about stuff like "Wow noob fail." or any of that.
Here is my Base.cpp (with some of it cut out incase leechers look here
)
Here is my Base.cpp (with some of it cut out incase leechers look here
)Code:
#include "Base.h"
#include "Menu.h"
#include "funtion.h"
//Menu Position
int menux = 25;
int menuy = 250;
//Hack Variables
int noreload = 0;
int glass = 0;
int sbalas = 0;
int fps = 0;
int chams = 0;
int glow = 0;
int cross = 0;
int skeleton = 0;
int fog = 0;
int spread = 0;
int hover = 0;
int sway = 0;
int sun = 0;
int fly = 0;
int jump = 0;
int vjump = 0;
int speed = 0;
int stats = 0;
int tracers = 0;
int window = 0;
int prediction = 0;
int pplwire = 0;
int worldwire = 0;
int hands = 0;
int knockback = 0;
int fullbright = 0;
int pickup = 0;
int tags = 0;
//Menu Groups
int more = 0;
int removals = 0;
int visual = 0;
int vip = 0;
void cMenu::RenderMenu(void)
{
AddItem(" [ Visuals ] ", Opt_Folder, &visual, 2, MENUFOLDER);// 12 more hacks to add :D
if(visual){
AddItem("Show FPS " , Opt_on_off , &fps , 2, MENUITEM);//1
AddItem("NX Chams " , Opt_on_off , &chams , 2, MENUITEM);//1
AddItem("Glass Walls " , Opt_on_off , &glass , 2, MENUITEM);//1
AddItem("Glow " , Opt_on_off , &glow , 2, MENUITEM);//1
AddItem("Crosshair " , Opt_on_off , &cross , 2, MENUITEM);//1
AddItem("Skeleton Model " , Opt_on_off , &skeleton , 2, MENUITEM);//1
AddItem("Fullbright " , Opt_on_off , &fullbright , 2, MENUITEM);//1
AddItem("NameTags " , Opt_on_off , &tags , 2, MENUITEM);//1
}
AddItem(" [ Removals ] ", Opt_Folder, &removals, 2, MENUFOLDER);
if(removals){
AddItem("No Fog " , Opt_on_off , &fog , 2, MENUITEM);//1
AddItem("No Spread " , Opt_on_off , &spread , 2, MENUITEM);//1
AddItem("No Sway " , Opt_on_off , &sway , 2, MENUITEM);//1
AddItem("No Knockback " , Opt_on_off , &knockback , 2, MENUITEM);//1
AddItem("No Reload " , Opt_on_off , &noreload , 2, MENUITEM);//1
}
AddItem(" [ More ] ", Opt_Folder, &more, 2, MENUFOLDER);
if(more){
AddItem("Fly " , Opt_on_off , &fly , 2, MENUITEM);//1
AddItem("Super Jump " , Opt_on_off , &jump , 2, MENUITEM);//1
AddItem("Virtual Jump " , Opt_on_off , &vjump , 2, MENUITEM);//1
AddItem("Speed Hack " , Opt_on_off , &speed , 2, MENUITEM);//1
AddItem("Player Stats " , Opt_on_off , &stats , 2, MENUITEM);//1
AddItem("Tracers " , Opt_on_off , &tracers , 2, MENUITEM);//1
AddItem("Prediction " , Opt_on_off , &prediction , 2, MENUITEM);//1
AddItem("Pickup " , Opt_on_off , &pickup , 2, MENUITEM);//1
AddItem("Player Wireframe " , Opt_on_off , &pplwire , 2, MENUITEM);//1
AddItem("World Wireframe " , Opt_on_off , &worldwire , 2, MENUITEM);//1
}
AddItem(" [ V.I.P ] ", Opt_Folder, &vip, 2, MENUFOLDER);
if(vip){
AddItem("Super Bullets " , Opt_on_off , &sbalas , 2, MENUITEM);//1
}
}
Code:
cBase Base;
bool IsIngame()
{
DWORD* LTBase = (DWORD*)LtClientcode;
IsConnected_t pConnected = *(IsConnected_t*)(*LTBase + 0x8C);
return pConnected();
}
Code:
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(cross > 0){
DrawCrosshair(pDevice,Red);
}
if(Mvisible){
DrawBox(20,250,185,noob,D3DCOLOR_ARGB (110, 0 , 0 , 0) ,D3DCOLOR_ARGB(255 , 255 , 0 , 0 ),pDevice);
DrawBox(43,225,135,20,D3DCOLOR_ARGB(110, 0 , 0 , 0) ,D3DCOLOR_ARGB(255 , 255 , 0 , 0 ),pDevice);
Directx.DrawString(43, 227, Red,Directx.pFont," ************** Pub");
Directx.DrawString(800, 5, Red,Directx.pFont,"[ Hack By ShoeBox ]");
Directx.DrawString(800, 30, Red,Directx.pFont,"[ Credits To Reimy, FK127, & ExO ]");
{
}
}
}
Menu.MenuShow(menux,menuy,Directx.pFont);
Menu.MenuNav();
}
DWORD cBase::GetPointer(int index)
{
DWORD* devicePtr = ***(DWORD****)0x90BF20;
if( devicePtr == NULL )
return 0;
return devicePtr[index];
}
bool cBase::IsGameReadyForHook(void)
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
DWORD WINAPI dwMainThread(LPVOID)
{
while ( !Base.IsGameReadyForHook() )
Sleep(iWaitTime);
Directx.Hook();
return 0;
}




