Raised This Month: $ Target: $400
 0% 

[SOLVED] Multiple menus with same array, function and handler


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-21-2016 , 14:30   Re: Multiple menus with same array, function and handler
Reply With Quote #2

The easiest way is to simply put the command (e.g. "disconnect") in the info argument of menu_additem() the you have everything you need in the handler without even knowing what menu was chosen.

FYI, prefixing a variable with "i" means that it is an integer. The variables in your "items" enum should be prefixed with "sz" since you are using them as strings.
__________________

Last edited by fysiks; 05-21-2016 at 14:32.
fysiks 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 18:38.


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