Results 1 to 13 of 13
  1. #1
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold

    Help with gellins base!

    Im having a problems with the text isn't comming back after one game..

    The background square is there but not the text..

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Try hooking Reset. IDirect3DDevice9::Reset Method (Windows)

    Call OnLostDevice and OnResetDevice in every iteration of Reset.

    ID3DXFont::OnLostDevice Method (Windows)
    ID3DXFont::OnResetDevice Method (Windows)

  3. #3
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Yes try that it should work.

  4. #4
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    It still wont work i think im doing something wrong:

    Code:
    	if( Directx.pFont == NULL ){
    		Directx.pFont->OnLostDevice();
    		Directx.pFont->OnResetDevice();
    
    	}else
    	{
    		Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 255, 0), Directx.pFont, "Iopop9 MagicHack v.2");
    		Menu.RenderMenu();
    	}



    PS. yes i have created a pFont

  5. #5
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    recreate your font after each game

  6. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Keep creating the font, might make the game lag though.

  7. #7
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    mine creates the font every frame, which caused the game to lag

  8. #8
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by scimmyboy View Post
    mine creates the font every frame, which caused the game to lag
    use Sleep(600000) to delay it 10 minutes each time. That should fix it.

  9. #9
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    https://mpgh.net MPGHCash: $442,596,199
    Posts
    5,645
    Reputation
    26
    Thanks
    896
    My Mood
    Happy
    notice how i said that in past tense

  10. #10
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by iopop9 View Post
    It still wont work i think im doing something wrong:

    Code:
    	if( Directx.pFont == NULL ){
    		Directx.pFont->OnLostDevice();
    		Directx.pFont->OnResetDevice();
    
    	}else
    	{
    		Directx.DrawString(10, 22, D3DCOLOR_ARGB(255, 255, 255, 0), Directx.pFont, "Iopop9 MagicHack v.2");
    		Menu.RenderMenu();
    	}



    PS. yes i have created a pFont
    in pDevice->OnDeviceLost() do Directx.pFont->OnLostDevice();
    in pDevice->OnResetDevice() do Directx.pFont->OnResetDevice();

    As in hook those two functions and call their pFont's equivelents before returning
    Ah we-a blaze the fyah, make it bun dem!

  11. #11
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,102
    Reputation
    16
    Thanks
    649
    My Mood
    Cold
    i have fixed it thanks to mattypatty and it dont lag xD yayyaay

  12. #12
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Sharing the solution would be nice.

  13. #13
    mwb1234's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    460
    Reputation
    7
    Thanks
    65
    Quote Originally Posted by scimmyboy View Post
    notice how i said that in past tense
    /fart

    I didn't notice
    forgive me best buddy?

Similar Threads

  1. Help with Gellins VIP Base
    By sky479 in forum Combat Arms Coding Help & Discussion
    Replies: 1
    Last Post: 10-17-2011, 02:15 AM
  2. Help with C00lGuys base
    By eXaLtIc™ in forum Combat Arms Coding Help & Discussion
    Replies: 11
    Last Post: 10-03-2010, 05:58 AM
  3. Help with Gellins Base.
    By Beatz in forum Combat Arms Help
    Replies: 5
    Last Post: 07-15-2010, 08:44 PM
  4. Error with Gellin base...
    By haloassasin in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 7
    Last Post: 06-21-2010, 05:35 PM
  5. help with gellins base for CA
    By RedThunder in forum C++/C Programming
    Replies: 8
    Last Post: 03-15-2010, 09:49 AM