.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   menu question for botman (http://forums.bots-united.com/showthread.php?t=2212)

[MoD]Cha0s C0ntr0L 06-07-2004 02:35

menu question for botman
 
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

Whistler 06-07-2004 07:08

Re: menu question for botman
 
maybe you messed up the code to display the menu.
make sure you have added the "break;" at each "case MENU_XXX:".

Cpl. Shrike 06-07-2004 15:17

Re: menu question for botman
 
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.

botman 06-07-2004 15:44

Re: menu question for botman
 
Here's the original Text menus tutorial...

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

botman


All times are GMT +2. The time now is 17:50.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.