Results 1 to 5 of 5
  1. #1
    the grim reaper's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Ca Na Section
    Posts
    166
    Reputation
    19
    Thanks
    48
    My Mood
    Amazed

    Wink (HELP) Need Help With DrawBox

    hey guys i am making a hack but i need some help drawing the border of the box and more

    here is the code maybe some of you can post below with the right code and if i get no errors ill give u +REP

    thanks


    Code:
    void FillRGB( int x, int y, int w, int h, D3DCOLOR color, IDirect3DDevice9* pDevice )
    {
    if( w < 0 )w = 1;
    if( h < 0 )h = 1;
    if( x < 0 )x = 1;
    if( y < 0 )y = 1;
    
    D3DRECT rec = { x, y, x + w, y + h };
    pDevice->Clear( 1, &rec, D3DCLEAR_TARGET, color, 0, 0 );
    }
    
    void DrawBorder( int x, int y, int w, int h, int px, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, (y + h - px), w, px, BorderColor, pDevice );
    FillRGB( x, y, px, h, BorderColor, pDevice );
    FillRGB( x, y, w, px, BorderColor, pDevice );
    FillRGB( (x + w - px), y, px, h, BorderColor, pDevice );
    }
    
    void DrawBox( int x, int y, int w, int h, D3DCOLOR BoxColor, D3DCOLOR BorderColor, IDirect3DDevice9* pDevice )
    {
    FillRGB( x, y, w, h, BoxColor, pDevice );
    DrawBorder( x, y, w, h, 1, BorderColor, pDevice );
    }
    
    
    cBase Base;
    
    void cBase::RenderFrame(LPDIRECT3DDEVICE9 pDevice)
    {
    
    if(Directx.pFont == NULL)
    	D3DXCreateFont(pDevice, 15, 0, 350, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial", &Directx.pFont );
    
    if(Directx.pFont2 == NULL)
    	D3DXCreateFont(pDevice, 18, 0, 700, 0, 0, DEFAULT_CHARSET, OUT_TT_ONLY_PRECIS, PROOF_QUALITY, DEFAULT_PITCH | FF_DONTCARE, "Arial Black", &Directx.pFont2 );
    
    if(sprite){
        D3DXCreateTextureFromFileInMemory(pDevice,&Menupic,sizeof(Menupic),&MenuTexture);
        D3DXCreateSprite(pDevice,&Sprite);
        sprite = FALSE;
      }  
    
        D3DXVECTOR3 POS;
        POS.x = 15;
        POS.y = 15;
        POS.z = 0; 
    
    	if (Mmax==0) Menu.RenderMenu();
    		if(Mvisible){
    			DrawBox (X,Y,W,H,Back Color,Border Color,pDevice);

    Its Whit's Combined Base V2
    and no it is not patched cause me and reimy use it
    Respect List:
    [MPGH]Dave84311
    freedompeace
    _FK127_
    Reimy
    Speedforyou
    wolffang0000



    If i helped at all please press the thanks button

  2. #2
    GodHack2's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    645
    Reputation
    38
    Thanks
    762
    My Mood
    Amused
    so wait you want us to fix your errors?





    beat this bitches ^^^^^^^

    Current Stats : Bored :/


    Respect list :
    Crash !
    Gordon'
    Markoj

  3. #3
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,406
    My Mood
    In Love
    Code:
    DrawBox(1,1, 15, 15, 1, D3DCOLOR_ARGB(255, 255, 000, 000), pDevice);
    There, Fixed
    No I do not make game hacks anymore, please stop asking.

  4. The Following User Says Thank You to flameswor10 For This Useful Post:

    the grim reaper (01-28-2011)

  5. #4
    Nubzgetkillz's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    hacktown
    Posts
    838
    Reputation
    13
    Thanks
    411
    My Mood
    Amazed
    Wow this is bullshit

    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

  6. #5
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    DrawBox (X,Y,W,H,Back Color,Border Color,pDevice);
    You need to fill in your parameters
    DrawBox(10,10,100,300,Black,Silver,pDevice);



    Put this image in your signature if you support HTML5 development!

  7. The Following User Says Thank You to _Fk127_ For This Useful Post:

    the grim reaper (01-28-2011)