Raised This Month: $ Target: $400
 0% 

Help to making a menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dutchmeat
Senior Member
Join Date: Sep 2006
Old 01-20-2007 , 07:49   Re: Help to making a menu
Reply With Quote #7

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plugin" #define VERSION "1.0" #define AUTHOR "Author" #define KeysMy Simple Menu (1<<3) // Keys: 4 public plugin_init() {  register_plugin(PLUGIN, VERSION, AUTHOR)    register_menucmd(register_menuid("My Simple Menu"), KeysMy Simple Menu, "PressedMy Simple Menu")  // Add your code here... } public ShowMy Simple Menu(id) {  show_menu(id, KeysMy Simple Menu, "\rChoise One^nChoise Two^nChoise Three^nChoise Four^n", -1, "My Simple Menu") // Display menu } public PressedMy Simple Menu(id, key) {  /* Menu:  * Choise One  * Choise Two  * Choise Three  * Choise Four  */  switch (key) {   case 0:{   //do something with the First choise   }   case 1:(   //do something with the Second choise   }   case 2:{   //do something with the Third choise     }   case 3: { // 4   //do something with the last choise   }  } }
__________________
before you criticize someone, you should walk a mile in their shoes. that way, when you criticize them, you're a mile away and you have their shoes.

Last edited by dutchmeat; 01-20-2007 at 07:50. Reason: typo
dutchmeat 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 22:20.


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