Raised This Month: $ Target: $400
 0% 

How can i have 2 Pages on my menu ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MyDooMJr
Member
Join Date: Jun 2009
Location: Portugal
Old 01-02-2011 , 10:47   How can i have 2 Pages on my menu ?
Reply With Quote #1

Hey guys,

I have an question and i hope it can be fixed

I want to add Next and Back Function

Code:
#include <amxmodx> #include <amxmisc> public plugin_init() {     register_plugin("Plugin","1.0","KuNh4")     register_menucmd(register_menuid("Menu_Example"),1023,"Menu_1"); }  public Menu_1(id)  {     static szMenuBody[256];     if(!szMenuBody[0])     {         new len = format(szMenuBody,255,"\rExample:^n");         len += format(szMenuBody[len],255-len,"^n\y1. Radio");         len += format(szMenuBody[len],255-len,"^n\y2. Shop");         len += format(szMenuBody[len],255-len,"^n\y7. Next");         len += format(szMenuBody[len],255-len,"^n\y8. Back");         len += format(szMenuBody[len],255-len,"^n\y9. Exit");     }     new keys = |1<<1|1<<2|1<<3|1<<4|1<<5|1<<6|;     show_menu(id,keys,szMenuBody,-1,"Menu_Example");  }  public Menu_Example(id,key)  {     switch(key)     {         case 1:         {             show_motd(id,"radio.txt","Radio")         }         case 2:         {             client_cmd(id,"shop")         }     }  }

How can i do that ?
Thx !

Regards ^^,

EDITED : CAN YOU GUYS FIX MY CODE PLEASE ? REgarDs !

Last edited by MyDooMJr; 01-02-2011 at 12:15.
MyDooMJr 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 02:09.


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