Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    Whats Wrong? In my Menu


    sleutel
     Share

    Recommended Posts

    What's Wrong with This?

     

    sprintf(superjump, "%s", (SJump ?  "Superjump 2000": "Superjump 2500" : "Superjump OFF"));

     

    I have Used INT for more Options,

    But it Gives a Syntax Error!

    Link to comment
    Share on other sites

    //In Globals
    int superjumpindex = 0;	//our current superjumpindex
    int maxsuperjump = 3000;  // our max superjumpindex
    int minsuperjump = 0;   //our min superjumpindex
    char superinfo[50];  //just some char to get our superjump displayed
    
    //Near your menu
    if(superjumpindex < superjumpmin)
    superjumpindex = superjumpmax;
    if(superjumpindex > superjumpmax)
    superjumpindex = superjumpmin;
    
    //In your menu
    sprintf(superinfo, "%i", superjumpindex);
    
    //Where you are handeling the arrow actions
    if((GetAsyncKeyState(VK_RIGHT)&1)!=0)
    {
      if(menuSelectedSuperjump)  // < or what else you handle your menu selection
      superjumpindex += 500; // adds 500 to superjump each time you press RightArrow untill 3000 (max)
    }
    
    if((GetAsyncKeyState(VK_LEFT)&1)!=0)
    {
    if(menuSelectedSuperjump) // same here as above
    superjumpindex -= 500; //substracts 500 until u got to 0
    }
    
    //Where you print out your menu
    pFont->DrawText(NULL, "Superjump", x, y, ...) // < x and y position is for displaying the string Superjump !
    pFont->DrawText(NULL, superinfo, x+50, y, ...) // we want to get the index of superjump on the same line as superjump string so you take the same y position but to the x position you add like 50 or 100 to get it displayed on the right side !

     

     

    Ok i hope this helps ya... its a way how you can do multiple selections xD

    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...