Help|Menu distroy after 1 game

Posts 1–15 of 15 · Page 1 of 1
Help|Menu distroy after 1 game
Hey guys , finnaly I have my own menu and I've error after 1 game the menu go (not totally) I can turn hacks on or off but I don't see where am I ...


There is way to fix it ? thanks for help! (I'm using Hans+Gellins base by whit)
whit base doesn't has like this Problem
but to fix it
i think you need to create new font and Refresh the menu and show it again
show menu not by insert key it's
this Example don't work with you
Menu.show
Menu.ShowItems
Menu.show(char ,* Pfont....)
Quote Originally Posted by mo3ad001 View Post
whit base doesn't has like this Problem
but to fix it
i think you need to create new font and Refresh the menu and show it again
show menu not by insert key it's
this Example don't work with you
Menu.show
Menu.ShowItems
Menu.show(char ,* Pfont....)
I don't understand you dude ...
Quote Originally Posted by o-o View Post
I don't understand you dude ...
like this man
[php]

if (GetAsyncKeyState(VK_DELETE)&1){
//Create new Font
D3DXCreateFontW(pDevice, 15, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Comic Sans MS", &Directx.pFont );

Menu.MenuShow(menux,menuy,Directx.pFont);//show menu
Menu.MenuNav();
}
[/php]
just Copy and Paste last thing into RenderFrame....(Base.cpp)

and use Delete key to see the Menu again
if not work Tell me
Add a wile in renderframe and post the code of mo3ad
Quote Originally Posted by coogle007 View Post
Add a wile in renderframe and post the code of mo3ad
did you use it in 0.4-0.5 menu hack !of you
because you said Fixed this Problem
Probably not resetting your font correctly... or if you're using ID3DXFont then use another font class.
Yes i'm using ID3D3XFont .. what font I have to use ?
Stopping your font from disappearing is actually very simple.

At the top of your code, after your #includes and #defines, add a line:

Code:

Code:
LPDIRECT3DDEVICE9 g_pDevice = 0;
You can change g_pDevice to whatever you want.

Next, in your hooked Present/Endscene, add an if block like this:

Code:

Code:
if (g_pDevice != pDevice)
{
    g_pDevice = pDevice;
    try
    {
        if (pFont != 0)
            pFont->Release();
    } catch (...) {}
    pFont = 0;
    D3DXCreateFontA(Do whatever you normally do);
}
The try/catch is VERY important. If you dont have it you will probably crash CA. What it does it takes all those errors that pop up like referenced memory and stops them from showing.


i dont take credits
full credits to DJ UN1V3r5aL
from another site
and with that you dont even need to press a button
Mo3ad way works but there's litttttttle bugs Thanks all /close req
Quote Originally Posted by o-o View Post
Mo3ad way works but there's litttttttle bugs Thanks all /close req
why the Fats may we Can help the new Problem ^_^
tell as what the Problem's and we Fix all
and what the other say may the way of create D3DFont fail or something
but we can Fix it
Quote Originally Posted by mo3ad001 View Post
why the Fats may we Can help the new Problem ^_^
tell as what the Problem's and we Fix all
and what the other say may the way of create D3DFont fail or something
but we can Fix it
Nevermind dude the menu works perfecly thanks for the helps ! ... /close req
my one works without bugs did you test it ? what problems do you get
where can i find this menue hack? surce?
Quote Originally Posted by ldmx,tk View Post
where can i find this menue hack? surce?
Make one
Posts 1–15 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?