google-site-verification: googlebaca44933768a824.html help me for add description - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

help me for add description

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    help me for add description

    i need a help for try add one description in menu:

    example:

    i = AddMenuEntry(i, " Name Tags", &mz.m_psCvar->esp_name, 0, 1, 1,"Can see Names");

    my menu code, no support this description in menu:

    Structure of my menu:

    bool bMenu = false;

    float menu1,menu2,menu3,menu4,menu5,menu6,menu7,menu8,menu10,menu11,menu12,menu13,menu15,menu1337,rofls,po smenu,menu9;
    struct a_menu{char title[1000];float* value;float min;float max;float step;};
    int menuIndex = 0;int menuItems = 0;a_menu amenu[150];
    cMenu gMenu;

    int cMenu::AddMenuEntry(int n, char title[1000], float* value, float min, float max, float step)
    {
    strcpy( amenu[n].title,title);
    amenu[n].value = value;
    amenu[n].min = min;
    amenu[n].max = max;
    amenu[n].step = step;
    return (n+1);
    }
    any can help me? Thanks for all to all ;)

    #2
    Do you mean names for ESP's like

    "Health ESP"
    "ESP Sounds"
    "Armour ESP"





    (8:22:27 AM) Aspire: and i noticed your good at programming
    (8:22:41 AM) czkb: bs im nubcake
    νзηοма: cu later i have to bomb jerusalem from toilet
    [root@project7 ~]# whoami
    root

    Comment


      #3
      yes, but my menu code no support this, is needed abother variable?

      for example this:

      i = AddMenuEntry(i, " Name Tags", &mz.m_psCvar->esp_name, 0, 1, 1,"NAME ESP");

      compile error:

      cMenu.cpp(36): error C2660: 'cMenu::AddMenuEntry' : function does not take 7 arguments

      ???

      can you help me?

      Comment


        #4
        i have make it for me also ...
        just modify the AddMenuEntry Part.
        Add at last the Same like title.

        Code:
        ......
        	amenu[n].step = step;
        	strcpy( amenu[n].comment,comment);
        	return (n+1);
        But don?t forget to make:
        Code:
        int cMenu::AddMenuEntry(........... float step, char comment[1000])
        And you must modify the stuct like:
        Code:
        struct a_menu{.......... max;float step;char comment[1000];};
        Then it should work.

        Thats only a Example !

        Have Fun

        Helo

        Comment


          #5
          Originally posted by Helo View Post
          i have make it for me also ...
          just modify the AddMenuEntry Part.
          Add at last the Same like title.

          Code:
          ......
          	amenu[n].step = step;
          	strcpy( amenu[n].comment,comment);
          	return (n+1);
          But don?t forget to make:
          Code:
          int cMenu::AddMenuEntry(........... float step, char comment[1000])
          And you must modify the stuct like:
          Code:
          struct a_menu{.......... max;float step;char comment[1000];};
          Then it should work.

          Thats only a Example !

          Have Fun

          Helo
          Helo, when you gonna release a new pub, your other one kicked ass.(It's savage btw)

          Comment


            #6
            im pretty sure i seen this on GD it was in HLH? correct me if im wrong

            Comment


              #7
              Originally posted by shaunm2 View Post
              im pretty sure i seen this on GD it was in HLH? correct me if im wrong
              in the HLH the cvar will be created like this:

              Code:
              #define CreateCvar( Name, Desc, Min, Max ) 
              	static ConVar m_##Name ( HACKPREFIX#Name, Min, CVAR_FLAGS, #Desc, true,(float)Min, true,(float)Max, (FnChangeCallback) cvar_callback); 
              			Name = &m_##Name;
              other way...

              Helo

              Comment


                #8
                i'd have to agree with Helo on this

                Code:
                struct a_menu
                {
                     char title[1000];
                     float* value;
                     float min;
                     float max;
                     float step; 
                     char comment[1000];
                };
                and once you have that sorted, you will be able to add a comment

                Code:
                i = AddMenuEntry(i, "     Player Names", &nam, 0, 1, 1, "the player names");
                ka0s?

                sigpic

                -=[ http://kaos.99k.org ]=-

                czkb: yay but for now i still understand half of the half of the quarter of the half of what i must know.
                [email protected] (E-mail Address Not Verified) says:
                http://www.youtube.com/user/ka0s99k#p/f/70/iK9bhyl6B_E
                J says:
                can we please accomplish something

                Comment


                  #9
                  Originally posted by Helo View Post
                  i have make it for me also ...
                  just modify the AddMenuEntry Part.
                  Add at last the Same like title.

                  Code:
                  ......
                  	amenu[n].step = step;
                  	strcpy( amenu[n].comment,comment);
                  	return (n+1);
                  But don?t forget to make:
                  Code:
                  int cMenu::AddMenuEntry(........... float step, char comment[1000])
                  And you must modify the stuct like:
                  Code:
                  struct a_menu{.......... max;float step;char comment[1000];};
                  Then it should work.

                  Thats only a Example !

                  Have Fun

                  Helo
                  using this mode, compiling this error:

                  cMenu.cpp(17): error C2511: 'int cMenu::AddMenuEntry(int,char [],float *,float,float,float,char [])' : overloaded member function not found in 'cMenu'


                  ???

                  EDIT: Solved :) added in menu.h the same line ;) thanks to all for all.
                  Last edited by Guest; 04-06-2008, 01:07 PM.

                  Comment


                    #10
                    Originally posted by xblade View Post
                    using this mode, compiling this error:

                    cMenu.cpp(17): error C2511: 'int cMenu::AddMenuEntry(int,char [],float *,float,float,float,char [])' : overloaded member function not found in 'cMenu'


                    ???

                    EDIT: Solved :) added in menu.h the same line ;) thanks to all for all.
                    You have your function declaration in the header file, make sure that has the same parameters.

                    Comment


                      #11
                      Originally posted by Helo View Post
                      in the HLH the cvar will be created like this:

                      Code:
                      #define CreateCvar( Name, Desc, Min, Max ) 
                          static ConVar m_##Name ( HACKPREFIX#Name, Min, CVAR_FLAGS, #Desc, true,(float)Min, true,(float)Max, (FnChangeCallback) cvar_callback); 
                                  Name = &m_##Name;
                      other way...

                      Helo
                      yay and by this way you can still create convar but trying to write the cvar name IN GAME CONSOLE JUST CRASH YOUR GAME O.?






                      gibs coins @
                      1KatP9B8KG7mvcoFhdLGua1isG88nYZE8C

                      Comment

                      Working...
                      X