Results 1 to 10 of 10
  1. #1
    zatchbell3's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    186
    Reputation
    14
    Thanks
    47
    My Mood
    Amazed

    Exclamation Menu Keeps Disappearing

    Well,I started coding this hack so far,and its all working,except for like,the menu will disappear and some times not show all the hacks because part of the list of jut like gone and i can tell because half a word liek the top and bottom will be chopped off,Any ideas on how i can fix this?
    So far it looks liek this

    ScreenShot:

    And it disappears once i go into game and then come to lobby it will be gone and wont pop back up
    Last edited by zatchbell3; 02-08-2011 at 10:36 PM.

  2. #2
    filecroc's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Brazil
    Posts
    18
    Reputation
    10
    Thanks
    18
    f you use the base (whit / gellin / hans). Problem is here:

    Code:
    D3DXCreateFont -> pDevice / g_pDevice.
    To Fix:

    Code:
        if (g_pDevice != pDevice) 
           {
              g_pDevice = pDevice;
    
        ............................. 
    
        Now you should know how to proceed?

  3. #3
    Sydney's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Germany...
    Posts
    1,356
    Reputation
    37
    Thanks
    1,144
    My Mood
    Amused
    if(GetAsyncKeyState(VK_NUMPAD1)&1){
    Call the Font here again.
    }

    Or just use the function above me.

    Thanks Cosmos


  4. #4
    kotentopf's Avatar
    Join Date
    Nov 2009
    Gender
    male
    Posts
    602
    Reputation
    26
    Thanks
    251
    Code:
    void c3DMisc::SetFont(LPDIRECT3DDEVICE9 pDevice)
    {
    	if( D3D.Settings.pFont == NULL ){
    		D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
    	}else{
    
    	if (NULLDevice != pDevice)
    	{
    		NULLDevice = pDevice;
    		try
    		{
    			if (D3D.Settings.pFont != 0)
    				D3D.Settings.pFont->Release();
    
        } catch (...) {}
    	D3D.Settings.pFont = 0;
    	D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
    	}}
    }
    The Internet SHOULD Be Illegal

    When you say
    "Java is a great programming language because it works on all platforms"
    it is just like
    "anal sex is great because it works on all genders"

    Are YOU a Troll?

  5. #5
    zatchbell3's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    186
    Reputation
    14
    Thanks
    47
    My Mood
    Amazed
    Ive Tried these but i get errors and shit when i try to input the codes,anyone can pm at chadwyoung32505@hotmail.com and maybe teamviewr me?

  6. #6
    AcidBone's Avatar
    Join Date
    Jan 2011
    Gender
    male
    Location
    Columbus, Ohio, United States
    Posts
    39
    Reputation
    10
    Thanks
    12
    Quote Originally Posted by kotentopf View Post
    Code:
    void c3DMisc::SetFont(LPDIRECT3DDEVICE9 pDevice)
    {
    	if( D3D.Settings.pFont == NULL ){
    		D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
    	}else{
    
    	if (NULLDevice != pDevice)
    	{
    		NULLDevice = pDevice;
    		try
    		{
    			if (D3D.Settings.pFont != 0)
    				D3D.Settings.pFont->Release();
    
        } catch (...) {}
    	D3D.Settings.pFont = 0;
    	D3DXCreateFontA(pDevice, 14, 0, FW_BOLD, 1, FALSE,DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, ANTIALIASED_QUALITY, DEFAULT_PITCH | FF_DONTCARE, Hack.Misc.Fontname, &D3D.Settings.pFont);
    	}}
    }
    off topic, but does anti aliasing really make that much of a difference?
    "XXXXXXX.DLL IS MISSING"

    Download Missing DLL Files HERE

    X64 users must place missing DLLs in sysWOW64 as well as System32. NEVER place DLLs in the Combat Arms folder no matter what a noob tells you.

  7. #7
    zatchbell3's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Posts
    186
    Reputation
    14
    Thanks
    47
    My Mood
    Amazed
    i just recalled the font,so it works now but you will have to press delete to bring it back up if it disappears

  8. #8
    NOOB's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    3,843
    Reputation
    425
    Thanks
    8,616
    [HIGHLIGHT=C++] if(Directx.pFont != 0)
    Directx.pFont->Release();
    Directx.pFont = 0;[/HIGHLIGHT]

    [HIGHLIGHT=C++]
    pDevice->SetRenderState( D3DRS_SRCBLEND, D3DBLEND_SRCALPHA );
    pDevice->SetRenderState( D3DRS_BLENDOP, D3DBLENDOP_ADD );
    pDevice->SetRenderState( D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA );
    pDevice->SetRenderState( D3DRS_ALPHATESTENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_SEPARATEALPHABLENDENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_STENCILENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_ALPHABLENDENABLE, TRUE );
    pDevice->SetRenderState( D3DRS_VERTEXBLEND, D3DVBF_DISABLE );
    pDevice->SetRenderState( D3DRS_INDEXEDVERTEXBLENDENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_COLORWRITEENABLE, D3DCOLORWRITEENABLE_ALPHA | D3DCOLORWRITEENABLE_BLUE |D3DCOLORWRITEENABLE_GREEN | D3DCOLORWRITEENABLE_RED );
    pDevice->SetRenderState( D3DRS_SHADEMODE, D3DSHADE_GOURAUD );
    pDevice->SetRenderState( D3DRS_FOGENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_SPECULARENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_LIGHTING, FALSE );
    pDevice->SetRenderState( D3DRS_CULLMODE, D3DCULL_NONE );
    pDevice->SetRenderState( D3DRS_ZWRITEENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_ZENABLE, FALSE );
    pDevice->SetRenderState( D3DRS_FILLMODE, D3DFILL_SOLID );[/HIGHLIGHT]

    /thread

  9. #9
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    ALL OF THE ABOVE. HAHAHAHAHA THEY ALL WORK

    Member since September 25, 2010

    Current Objectives:
    • Graduate college with a degree in Computer Science
    • Find a decent job in the Computer Science Field
    • Learn more programming languages

    Looking for Elo Boosting Job - League of Legends
    Looking for Bronze -> Gold Jobs


    Skype: whatthedream

  10. #10
    CAFlames's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Where ever my imagination takes me
    Posts
    3,006
    Reputation
    202
    Thanks
    2,944
    My Mood
    Twisted
    Reset the font.

    Current Works:
    ---Horror Game





    [IMG]https://i645.photobucke*****m/albums/uu180/drgnforce9/Siggys/signature3.jpg[/IMG]
    Special thanks to drgnforce9 for my sig picture

    Quote Originally Posted by m_t_h View Post

    CAflames is one epic coder.

    Rep and thanks him.. or you're perma banned.