Raised This Month: $51 Target: $400
 12% 

[BUG] New Menu System, 10th Item s/b 0


  
 
 
Thread Tools Display Modes
Author Message
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-07-2006 , 22:35   [BUG] New Menu System, 10th Item s/b 0
#1

When you have 10 items on a menu, using the new menu system, the 10th item's selection key is displayed as "10". It should be displayed as "0".

I don't have a "10" key.

If anyone disagrees with me, now is the time to post why.
__________________
Brad is offline
jim_yang
Veteran Member
Join Date: Aug 2006
Old 12-08-2006 , 01:20   Re: [BUG] New Menu System, 10th Item s/b 0
#2

could you show me how to see the "10." ?
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>
jim_yang is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 12-08-2006 , 02:04   Re: [BUG] New Menu System, 10th Item s/b 0
#3

use the new menu system and add at least 8 or 9 items (and leave the more, exit, and back options alone)

I can confirm that it shows the 10. Just sort of ignored it until now.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 12-08-2006 , 11:07   Re: [BUG] New Menu System, 10th Item s/b 0
#4

I suppose I could have just posted a picture but that'd be too easy.

This script will give you a "show_me" command that, when called, will display a test menu. Page 2 of the menu has the 10 items.

Will show script and attach it.

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Should Be 0, Not 10", "1.0", "Brad Jones");         register_clcmd("show_me", "_cmd_show_me"); } public _cmd_show_me(id) {     new menu = menu_create("0 or 10? See Page 2.", "menu_handler");         new menuText[24], menuCmd[3];         for (new menuItemIdx = 1; menuItemIdx <= 21; menuItemIdx++)     {         format(menuText, 23, "Menu Item #%i", menuItemIdx);         num_to_str(menuItemIdx, menuCmd, 2);                 menu_additem(menu, menuText, menuCmd, 0);     }         menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);         menu_display(id, menu, 0); } public menu_handler(id, menu, item) {     menu_destroy(menu)         return PLUGIN_HANDLED }
Attached Files
File Type: sma Get Plugin or Get Source (menu_test10.sma - 969 views - 683 Bytes)
__________________
Brad is offline
BAILOPAN
Join Date: Jan 2004
Old 12-18-2006 , 21:25   Re: [BUG] New Menu System, 10th Item s/b 0
#5

Thanks for the report. This is fixed as revision 3176 (note that a test case was also committed).
__________________
egg
BAILOPAN is offline
 



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


All times are GMT -4. The time now is 00:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode