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

Showing results 1 to 25 of 34
Search took 0.01 seconds.
Search: Posts Made By: Emp`
Forum: Code Snippets/Tutorials 04-18-2013, 23:59
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Thanks for pointing that out hornet. I revised the examples that don't need menu_item_getinfo.
Forum: Code Snippets/Tutorials 04-16-2013, 02:31
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

While that works, the other method gives people a better understanding of the menus for different things. Also, if you want to reorganize a menu, you can just change where it is added, with this...
Forum: Code Snippets/Tutorials 11-16-2012, 19:00
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

New menu ids are zero based. The first menu id that is created is 0. player_menu_info is working fine.
Forum: Code Snippets/Tutorials 10-31-2012, 14:09
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Thank you for bringing that to my attention, I have added it to the example vote menus.
Forum: Code Snippets/Tutorials 04-23-2012, 12:44
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

It would (max length of a player id is 2 characters long + 1 for null terminator), but I left extra room for whatever purposes. For example, if you were to try doing Multiple Menus with 1 Handler...
Forum: Code Snippets/Tutorials 04-01-2012, 11:50
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

https://forums.alliedmods.net/showthread.php?t=46364#EndNotes
Forum: Code Snippets/Tutorials 03-27-2012, 14:10
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

You would use something like:
new iMenu = menu_create( "[001] MENU", "menu_handler" );
menu_additem( iMenu, "a", "1" );
menu_additem( iMenu, "b", "2" );
menu_addtext( iMenu, "XXXXXXXXX", .slot=0...
Forum: Code Snippets/Tutorials 03-27-2012, 13:44
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

You can only add text after adding items (text entries are tied to items). If you try to add text before items it should give you an error.


static cell AMX_NATIVE_CALL menu_addtext(AMX *amx,...
Forum: Code Snippets/Tutorials 01-19-2012, 15:46
Replies: 446
Views: 419,156
Posted By Emp`
Forum: Code Snippets/Tutorials 01-17-2012, 20:07
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Yes, I agree. Maybe I will add a section that shows how to use a single function to handle multiple menus.
Forum: Code Snippets/Tutorials 01-17-2012, 19:50
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

You don't need one for each menu. You can have a single function to handle all menus; you just need to be able to identify which menu you are currently handling. This can be done with a global...
Forum: Code Snippets/Tutorials 05-26-2011, 02:42
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

I'll try to write a new example for doing complex sub menus, that use the same menu handler.

As always, donations help motivate me to put more tutorials out there for people.
Forum: Code Snippets/Tutorials 03-30-2011, 14:29
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Create your own.
Forum: Code Snippets/Tutorials 12-25-2010, 15:14
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Please make your own topics if you are asking for help on menus in the Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11) section.

Posts that were here have been moved: Countdown...
Forum: Code Snippets/Tutorials 06-22-2010, 02:22
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Yes that is correct. It is meant so that the scripter can place in what they want to associate with that option. This could be a map id, player id, etc.
Forum: Code Snippets/Tutorials 06-09-2010, 14:17
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Please do not post in this thread unless it is about the examples provided or a question about the new menu system.

If you are trying to get something working for your menu or need help with...
Forum: Code Snippets/Tutorials 05-20-2010, 11:52
Replies: 446
Views: 419,156
Posted By Emp`
Forum: Code Snippets/Tutorials 05-04-2010, 16:55
Replies: 446
Views: 419,156
Posted By Emp`
Forum: Code Snippets/Tutorials 02-12-2010, 23:33
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Why not just create 3 separate menus?
Forum: Code Snippets/Tutorials 09-26-2009, 19:55
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

To hide a menu (new or old style) one can do:show_menu(id, 0, "^n", 1);
Forum: Code Snippets/Tutorials 08-17-2009, 20:15
Replies: 446
Views: 419,156
Posted By Emp`
Forum: Code Snippets/Tutorials 08-17-2009, 15:24
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

If a menu overwrites another menu, MENU_EXIT is called on the first menu.
Forum: Code Snippets/Tutorials 05-22-2009, 21:12
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

While that works, the other method gives people a better understanding of the menus for different things. Also, if you want to reorganize a menu, you can just change where it is added, with this...
Forum: Code Snippets/Tutorials 05-21-2009, 12:04
Replies: 446
Views: 419,156
Posted By Emp`
Forum: Code Snippets/Tutorials 04-11-2009, 05:11
Replies: 446
Views: 419,156
Posted By Emp`
Re: New AMXX Menu System

Added vote menu example, sub-menu example, and end notes to the main post.

edit: Added advance vote menu example.
Showing results 1 to 25 of 34

 
Forum Jump

All times are GMT -4. The time now is 17:18.


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