.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
menu question for botman
Old
  (#1)
[MoD]Cha0s C0ntr0L
Guest
 
Status:
Posts: n/a
Default menu question for botman - 06-07-2004

Hi botman,

I am coding for Natural selection and when I use your standard menu func:

char *show_menu_1 = "[HiveMinD menu]\n [1] Add a bot \n[2] Add 8 bots \n[3] Add 16 bots \n[4] Cancel\n";

It displays in-game like this:

[HiveMinD Menu] [1] Add a bot [2] Add 8 bots [3] Add 16 bots [4] Cancel
[1] Add a bot [2] Add 8 bots [3] Add 16 bots [4] Cancel
[2] Add 8 bots [3] Add 16 bots [4] Cancel
[3] Add 16 bots [4] Cancel
[4] Cancel

! Please Help ! Right now I am using it all on one line:
[HiveMinD Menu] [1] Add a bot [2] Add 8 bots [3] Add 16 bots [4] Cancel
  
Reply With Quote
Re: menu question for botman
Old
  (#2)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: menu question for botman - 06-07-2004

maybe you messed up the code to display the menu.
make sure you have added the "break;" at each "case MENU_XXX:".
  
Reply With Quote
Re: menu question for botman
Old
  (#3)
Cpl. Shrike
ShrikeBot Coder/Moderator
 
Cpl. Shrike's Avatar
 
Status: Offline
Posts: 550
Join Date: Mar 2004
Location: The Netherlands
Default Re: menu question for botman - 06-07-2004

Quote:
char *show_menu_1 = "[HiveMinD menu]\n [1] Add a bot \n[2] Add 8 bots \n[3] Add 16 bots \n[4] Cancel\n";
Add brackets around it
char *show_menu_1 = {"[HiveMinD menu]\n [1] Add a bot \n[2] Add 8 bots \n[3] Add 16 bots \n[4] Cancel\n"};
Atleast that works for me.
  
Reply With Quote
Re: menu question for botman
Old
  (#4)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: menu question for botman - 06-07-2004

Here's the original Text menus tutorial...

http://www.thewavelength.net/oldcont...torials/15.htm

botman
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com