View Full Version : Menu won't show?!
Gr4v1ty
06-09-2008, 09:39 PM
This is my endscene
I booled all of them but when i am in game and i press inserts, it won't show.
D3D is started the text is there!
HRESULT APIENTRY hkIDirect3DDevice8::EndScene(void)
{
if (m_pFont_new)
m_pFont_new->DrawText(400.0f, 0.0f, txtWhite, "*>>>Gr4v1ty's D3D<<<*");
if (m_pFont_INFO)
{
if (CH_Menu)///do hotkey for menu if getkeypress(blahkey){CH_Menu = !CH_Menu:}
{
sprintf(chamsstring, "%s", (CH_Chams ? "ON" : "OFF"));
sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));////our strings here
////--------------------------- this determines if the hack is highlighted -------------//
if(highlight[1]==1)
m_pFont_INFO->DrawText(15.0f, 220.0f, txtWhite, chamsstring);
else
m_pFont_INFO->DrawText(15.0f,220.0f, txtRed, chamsstring);
if(highlight[2]==1)
m_pFont_INFO->DrawText(15.0f, 230.0f,txtWhite, wirestring);
else
m_pFont_INFO->DrawText(15.0f, 230.0f,txtRed, wirestring);
////-------------------------------------------------------------------------------------------------//
////------------------------This is how to use our menu ----------------------------------//
if(GetAsyncKeyState(VK_UP)&1)
{
for(int i=0; i < 3; i++) /////add +1 to menu here ,change the 3
{
if (highlight[i] == 1)
{
int a = i-1;
if(a < 0)
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
if(GetAsyncKeyState(VK_DOWN)&1)
{
for(int i=0; i < 3; i++) //////same here change the 3 to +1 of menu
{
if (highlight[i] == 1)
{
int a = i+1;
if(a > 2) ////amount in the menu goes here ,change the 2
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
////------------------------ Activate hacks on/off here ------------------------------------//
if(GetAsyncKeyState(VK_INSERT)&1)
CH_Menu = !CH_Menu;
if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Chams = !CH_Chams;
if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Wire = !CH_Wire;
}
}
return m_pD3Ddev->EndScene();
}a
Skull
06-09-2008, 11:43 PM
Attach your source,
i can help you.
put the hotkey about
if (m_pFont_new)
m_pFont_new->DrawText(400.0f, 0.0f, txtWhite, "*>>>Gr4v1ty's D3D<<<*");
if (m_pFont_INFO)
{
if (CH_Menu)///do hotkey for menu if getkeypress(blahkey){CH_Menu = !CH_Menu:}
like
if(GetAsyncKeyState(VK_INSERT)&1)
CH_Menu = !CH_Menu;
if (m_pFont_new)
m_pFont_new->DrawText(400.0f, 0.0f, txtWhite, "*>>>Gr4v1ty's D3D<<<*");
if (m_pFont_INFO)
{
if (CH_Menu)///do hotkey for menu if getkeypress(blahkey){CH_Menu = !CH_Menu:}
Gr4v1ty
06-10-2008, 02:40 PM
Thanks but...It just shows ON and OFF. It doesn't show Chams : ON
Chams : OFF
Here is my code
HRESULT APIENTRY hkIDirect3DDevice8::EndScene(void)
{
if(GetAsyncKeyState(VK_INSERT)&1)
CH_Menu = !CH_Menu;
if (m_pFont_new)
m_pFont_new->DrawText(400.0f, 0.0f, txtWhite, "*>>>Gr4v1ty's D3D<<<*");
if (m_pFont_INFO)
{
if (CH_Menu)///do hotkey for menu if getkeypress(blahkey){CH_Menu = !CH_Menu:}
{
sprintf(chamsstring, "%s", (CH_Chams ? "ON" : "OFF"));
sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));
////--------------------------- this determines if the hack is highlighted -------------//
if(highlight[1]==1)
m_pFont_INFO->DrawText(15.0f, 220.0f, txtWhite, chamsstring);
else
m_pFont_INFO->DrawText(15.0f,220.0f, txtRed, chamsstring);
if(highlight[2]==1)
m_pFont_INFO->DrawText(15.0f, 230.0f,txtWhite, wirestring);
else
m_pFont_INFO->DrawText(15.0f, 230.0f,txtRed, wirestring);
////-------------------------------------------------------------------------------------------------//
////------------------------This is how to use our menu ----------------------------------//
if(GetAsyncKeyState(VK_UP)&1)
{
for(int i=0; i < 3; i++) /////add +1 to menu here ,change the 3
{
if (highlight[i] == 1)
{
int a = i-1;
if(a < 0)
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
if(GetAsyncKeyState(VK_DOWN)&1)
{
for(int i=0; i < 3; i++) //////same here change the 3 to +1 of menu
{
if (highlight[i] == 1)
{
int a = i+1;
if(a > 2) ////amount in the menu goes here ,change the 2
break;
else
{
highlight[a]=1;
highlight[i]=0;
break;
}
}
}
}
////------------------------ Activate hacks on/off here ------------------------------------//
if(GetAsyncKeyState(VK_INSERT)&1)
CH_Menu = !CH_Menu;
if(highlight[1] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Chams = !CH_Chams;
if(highlight[2] == 1 && (GetAsyncKeyState(VK_RIGHT)&1))
CH_Wire = !CH_Wire;
}
}
return m_pD3Ddev->EndScene();
}
sprintf(chamsstring, "%s", (CH_Chams ? "ON" : "OFF"));
sprintf(wirestring, " %s", (CH_Wire ? "ON" : "OFF"));
should look like this
sprintf(chamsstring, "Chams: %s", (CH_Chams ? "ON" : "OFF"));
sprintf(wirestring, "WireFrame: %s", (CH_Wire ? "ON" : "OFF"));
kingphilrey
08-07-2009, 09:34 PM
The menu wont show up:pctoss
Wieter20
08-08-2009, 11:00 AM
The menu wont show up:pctoss
please dont bump and thread of more then a year old.. please check the date when you post ^^
windowsvista
08-09-2009, 01:30 AM
I posting because I need help.
I have alot of errors and I want this to work.
\my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(25) : error C2653: 'hkIDirect3DDevice8' : is not a class or namespace name
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(29) : error C2065: 'm_pFont_new' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(30) : error C2065: 'm_pFont_new' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(30) : error C2227: left of '->DrawTextA' must point to class/struct/union/generic type
1> type is ''unknown-type''
\my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(30) : error C2065: 'txtWhite' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(32) : error C2065: 'm_pFont_INFO' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(36) : error C3861: 'sprintf': identifier not found
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(37) : error C3861: 'sprintf': identifier not found
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(44) : error C2065: 'm_pFont_INFO' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(44) : error C2227: left of '->DrawTextA' must point to class/struct/union/generic type
1> type is ''unknown-type''
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(44) : error C2065: 'txtWhite' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(46) : error C2065: 'm_pFont_INFO' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(46) : error C2227: left of '->DrawTextA' must point to class/struct/union/generic type
1> type is ''unknown-type''
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(46) : error C2065: 'txtRed' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(49) : error C2065: 'm_pFont_INFO' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(49) : error C2227: left of '->DrawTextA' must point to class/struct/union/generic type
1> type is ''unknown-type''
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(49) : error C2065: 'txtWhite' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(51) : error C2065: 'm_pFont_INFO' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(51) : error C2227: left of '->DrawTextA' must point to class/struct/union/generic type
1> type is ''unknown-type''
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(51) : error C2065: 'txtRed' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(118) : error C2065: 'm_pD3Ddev' : undeclared identifier
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(118) : error C2227: left of '->EndScene' must point to class/struct/union/generic type
1> type is ''unknown-type''
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(121) : error C2059: syntax error : '}'
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(121) : error C2143: syntax error : missing ';' before '}'
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(121) : error C2059: syntax error : '}'
my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(124) : error C2143: syntax error : missing ';' before '{'
\my documents\visual studio 2008\projects\d3d8 crosshair\d3d8 crosshair\d3d8 crosshair.cpp(124) : error C2447: '{' : missing function header (old-style formal list?)
1>Build log was saved at "file://My Documents\Visual Studio 2008\Projects\D3D8 Crosshair\D3D8 Crosshair\Debug\BuildLog.htm"
1>D3D8 Crosshair - 27 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
CptM0rg@n
08-10-2009, 11:54 AM
Closedddddddddddddddddddddd
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.