Raised This Month: $ Target: $400
 0% 

Menus + Files !!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-16-2013 , 18:30   Re: Menus + Files !!
Reply With Quote #4

Code:
#include < amxmodx > #define B1    1 << 1 #define B0    1 << 10 new gKeyslolMenu = B1 | B0; public plugin_init() {     register_clcmd("say /lol", "lolMenu");     register_menucmd(register_menuid("lolMenu"), gKeyslolMenu, "handlelolMenu"); } public lolMenu(id) {             new szMenu[256];             add( szMenu , 256 , "\r1. \wCall lol Menu Test^n" );         add( szMenu , 256 , "\r0. \wClose" );     show_menu( id , gKeyslolMenu , szMenu , -1 , "lolMenu" );     } public handlelolMenu(id, szMenu, num) {     switch (num)     {         case 1: { lolProcess( id ); }         case 0:         {         menu_destroy( szMenu );         return;         }     }         if (num != 1 && num != 9)     {         lolMenu(id);     } } public lolProcess( id ) {     // Sum huge variables         // Big loops     // File open and get data from file.     // Use of Cstrike and fun functions.     // fclose. }

menu displays as for the number 0 key the second option only works with key 2....
as to howto fix this im not sure ive never worked with old style menu system.
__________________
Blizzard_87 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 16:26.


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