Results 1 to 7 of 7
  1. #1
    azerty54's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    133
    Reputation
    125
    Thanks
    31
    My Mood
    Happy

    Question [Help] background in gellins base ?

    Hi
    how to add background in gellins base ?
    tank for help

  2. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    https://www.mpgh.net/forum/207-combat...to-resize.html Credit To Whhhhhit the PROOOOO ! and next time serch ..
    [IMG]https://i423.photobucke*****m/albums/pp312/LizMLsinatra/hh-1.png[/IMG]
    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



  3. #3
    RandomCoders's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    52
    Reputation
    9
    Thanks
    1
    DrawBox((this->mSet.x - 5), (this->mSet.y - 10), 154, 356, D3DCOLOR_ARGB(255,0,0,0), D3DCOLOR_ARGB(255,0,255,0), pDevice);

  4. #4
    cosconub's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    in the programming section MPGH Cash: $90,000,000,000
    Posts
    372
    Reputation
    -4
    Thanks
    39
    My Mood
    Psychedelic
    idk if he want a picture background or not. if not use DrawBox

    if you want picture use Sprites

  5. #5
    azerty54's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    133
    Reputation
    125
    Thanks
    31
    My Mood
    Happy
    :s errors please help my
    #include "Menu.h"

    #define Red D3DCOLOR_ARGB (255 , 255 , 0 , 0 )
    #define Yellow D3DCOLOR_ARGB (255 , 255 , 255 , 0 )
    #define Green D3DCOLOR_ARGB (255 , 0 , 255 , 0 )
    #define Blue D3DCOLOR_ARGB (255 , 0 , 0 , 255 )
    #define Purple D3DCOLOR_ARGB (255 , 102 , 0 , 153 )
    #define Pink D3DCOLOR_ARGB (255 , 255 , 20 , 147 )
    #define Orange D3DCOLOR_ARGB (255 , 255 , 165 , 0 )
    #define Black D3DCOLOR_ARGB (255 , 0 , 0 , 0 )
    #define White D3DCOLOR_ARGB (255 , 255 , 255 , 255 )

    char Mtitle[81]="EasyCheat by Azerty54";
    int Mpos=0;
    int Mmax=0;
    int Mxofs =160;
    int Mysize=14;
    int Mvisible=0;
    int whatever;


    char *Opt_Folder[] = { "-" , "+" };
    char *Opt_on_off[] = { "Off","On" };


    RECT rect;
    RECT rect2;
    RECT rect3;
    struct {
    int typ;
    char *txt;
    char **opt;
    int *var;
    int maxvalue;
    } MENU[MENUMAXITEMS];

    cMenu Menu;

    void cMenu::AddItem(char *txt, char **opt, int *var, int maxvalue, int typ)
    {
    MENU[Mmax].typ=typ;
    MENU[Mmax].txt=txt;
    MENU[Mmax].opt=opt;
    MENU[Mmax].var=var;
    MENU[Mmax].maxvalue=maxvalue;
    Mmax++;
    whatever=(Mmax*Mysize);
    }

    DrawBox(20,200,170,whatever,D3D color,pDevice);





    void cMenu::MenuShow(int x, int y, ID3DXFont *pFont)
    {

    int i, val;
    DWORD color;
    SetRect( &rect, x+Mxofs/2, y, x+Mxofs /2 , y );
    if (!Mvisible) return;

    if (Mtitle[0]) {

    pFont->DrawTextA(NULL,Mtitle,-1,&rect,DT_NOCLIP | DT_CENTER, MCOLOR_TITLE);

    y+=Mysize;
    }
    for (i=0; i<Mmax; i++) {
    val=(MENU[i].var)?(*MENU[i].var):0;

    if (i==Mpos)
    color=Green;
    else if (MENU[i].typ==MENUFOLDER)
    color=Blue;
    else if (MENU[i].typ==MENUTEXT)
    color=Black;
    else
    color=(val)?Orange:MCOLOR_INACTIVE;
    SetRect( &rect3, x, y, x , y );
    SetRect( &rect2, x+Mxofs, y, x+Mxofs , y );
    pFont->DrawText(NULL,MENU[i].txt,-1,&rect3, DT_NOCLIP,color);
    if (MENU[i].opt) {
    if (MENU[i].typ==MENUTEXT)
    pFont->DrawText(NULL,(char *)MENU[i].opt,-1,&rect2, DT_NOCLIP | DT_RIGHT, color);
    else
    pFont->DrawText(NULL,(char *)MENU[i].opt[val],-1,&rect2, DT_NOCLIP | DT_RIGHT, color);
    }
    y+=Mysize;
    }
    }

    void cMenu::MenuNav(void)
    {
    if (GetAsyncKeyState(VK_INSERT)&1) Mvisible=(!Mvisible);
    if (!Mvisible) return;

    if (GetAsyncKeyState(VK_UP)&1) {
    do {
    Mpos--;
    if (Mpos<0) Mpos=Mmax-1;
    } while (MENU[Mpos].typ==MENUTEXT);
    } else if (GetAsyncKeyState(VK_DOWN)&1) {
    do {
    Mpos++;
    if (Mpos==Mmax) Mpos=0;
    } while (MENU[Mpos].typ==MENUTEXT);
    } else if (MENU[Mpos].var) {
    int dir=0;
    // bugfix: thx to ***-Wieter20
    if (GetAsyncKeyState(VK_LEFT )&1 && *MENU[Mpos].var > 0 ) dir=-1;
    if (GetAsyncKeyState(VK_RIGHT)&1 && *MENU[Mpos].var < (MENU[Mpos].maxvalue-1)) dir=1;
    if (dir) {
    *MENU[Mpos].var += dir;
    if (MENU[Mpos].typ==MENUFOLDER) Mmax=0;
    }
    }
    }
    Error = Drawbox
    1> Menu.cpp (20): error C2086: 'int whatever': redefinition
    1> c: \ users \ fortdur \ Desktop \ hans & Gellin combined basis \ basket \ Menu.h (16): see declaration of 'whatever'
    1> Menu.cpp (52): error C2065: 'd3d': undeclared identifier
    1> Menu.cpp (52): error C2146: syntax error: missing ')' before identifier 'color'
    1> Menu.cpp (52): error C4430: missing type specifier - int is taken into account by default. Note: C + + does not support default int
    1> Menu.cpp (52): error C2078: too many initializers
    1> Menu.cpp (52): error C2059: syntax error: ')'
    ========== Build: 0 succeeded, 1 failed, 0 updated, 0 skipped ==========
    Last edited by azerty54; 09-15-2010 at 02:16 PM.

  6. #6
    IcySeal's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    300
    Reputation
    34
    Thanks
    148
    My Mood
    Amused
    Quote Originally Posted by azerty54 View Post
    :s errors please help my


    Error = Drawbox
    your supposed to be able to fix these on your own.

  7. #7
    flashlight95's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    12-34 Poopie Street Posts: Over 9000!
    Posts
    127
    Reputation
    10
    Thanks
    15
    lol, you just threw in the call for DrawBox under a random void function.

Similar Threads

  1. Help with Gellins Base.
    By Beatz in forum Combat Arms Help
    Replies: 5
    Last Post: 07-15-2010, 08:44 PM
  2. Help with gellins base!
    By Mr.Magicman in forum C++/C Programming
    Replies: 12
    Last Post: 06-08-2010, 07:32 AM
  3. help with gellins base for CA
    By RedThunder in forum C++/C Programming
    Replies: 8
    Last Post: 03-15-2010, 09:49 AM
  4. GELLINS BASE [HELP/HELPING OTHERS]
    By brttwrd in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 02-26-2010, 02:43 AM
  5. help gellins base
    By whit in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 02-23-2010, 05:01 PM