Raised This Month: $ Target: $400
 0% 

Back Button For menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nostrodamous
BANNED
Join Date: Oct 2006
Old 10-18-2006 , 22:37   Back Button For menu
Reply With Quote #1

ok i have no idea how to add a back button to my menu . can smeone help me ? here my main menu . can so meon show me the way to add a back button , after picking from this main menu it breaks down into every weapon , i want it to go back here if the user hits 9
Code:
public type_menu(id, level , cid) {  if(!cmd_access(id , level , cid , 0))  {   return PLUGIN_HANDLED;  }  else  {   format(menu, 191, "[Practice]^n^n1. Rifles^n2. SMG's^n3. Pistol's^n4. Nades^n^n0: Exit" );   show_menu(id , keys, menu, -1, "type_menu")   return PLUGIN_CONTINUE;  }  return PLUGIN_HANDLED; } public type_show(id , key) {  if(key == 0) // Rifles  {   rifle_menu(id);  }  else  {   if(key  == 1) // SMG's   {    smg_menu(id);   }   else   {    if(key == 2) // Pistol's    {     pistol_menu(id);    }    else    {     if(key == 3) // Nade's     {      nade_menu(id);     }     else           {      if(key == 4) // exit      {       return PLUGIN_HANDLED;      }     }    }   }  }  return PLUGIN_CONTINUE; }
Nostrodamous is offline
 


Thread Tools
Display Modes

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 04:55.


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