Raised This Month: $ Target: $400
 0% 

A question about AMXX menus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ryan
Senior Member
Join Date: May 2004
Location: NH, USA
Old 07-01-2004 , 02:25  
Reply With Quote #2

when you register a menu id, what you are doing is assigning an id to any menu which contains the string in your register_menuid command, ie-

Code:
register_menuid("\yThis is just an example")

when you use register_menucmd, all this does is assigns a command (argument 3) to any menu with the id in argument 1 when certain key(s) are pressed (argument 2).

so to answer your question, it's not the first set of code that determines the command to run, it's actually determined when the menu is 'registered' on plugin_init. (or wherever else the menus are registered)
__________________
Warcraft 3: Expansion
Homepage | Downloads | Forums
Ryan is offline
Send a message via AIM to Ryan
 



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 14:45.


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