Raised This Month: $ Target: $400
 0% 

Doesnt compile


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
nixh
Member
Join Date: Nov 2013
Old 05-31-2014 , 13:43   Doesnt compile
Reply With Quote #1

Hey forum members, got this thing and it doesnt compile can you help me fix this problem?


Code:
#include <amxmodx>


new g_szTitle[] = "JailBreak Menu";
 
public plugin_init()
{

             register_plugin("JbMenu", "1.1", "whocares");
             register_clcmd( "chooseteam" , "ShowMenu" );
        
         
    
       
}
public ShowMenu(id)
{
       
         new iNum
         
         new iMinutes
         
         new CurrentMap[33]
         
        new szMenuTitle[150]
         
        iMinutes = get_timeleft( ) / 60
         // gets the amount of players on server and saves it into iNum
        iNum = get_playersnum( )
         
         get_mapname(CurrentMap, charsmax(CurrentMap));
         
        formatex(szMenuTitle, charsmax(szMenuTitle), "\r\y%s^n\rCurrent Map:\w%s^n\w%d \yPlayers Online\r| \w%d \yMinutes left\r| \yYou have \w%i$\yJbCash",g_szTitle, CurrentMap, iNum, iMinutes);
        new menu = menu_create(szMenuTitle, "Jb_Menu");
         
         
        menu_additem(menu, "VIP Menu", "", 0); // case 0
        menu_additem(menu, "JbShop", "", 0); // case 1
        menu_additem(menu, "Achievements", "", 0); // case 2
        menu_additem(menu, "Playtime", "", 0); // case 3
        menu_additem(menu, "CashTop", "", 0); // case 4
        menu_additem(menu, "Rules", "", 0); // case 5
        menu_additem(menu, "Change Team", "", 0); // case 6
        
 
        menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
 
        menu_display(id, menu, 0);
 
        return PLUGIN_HANDLED;
}
public Jb_Menu(id, menu, item)
{
        if(item == MENU_EXIT)
        {
                menu_cancel(id);
                return PLUGIN_HANDLED;
        }
 
        new command[6], name[64], access, callback;
 
        menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
 
        switch(item)
        {
                case 0:
                {
                         client_cmd(id, "say /menu")
                        client_print(id, print_chat, "You have selected the VIP Menu");
                }
                case 1:
                {
                        client_cmd(id, "say /jbshop")
                        client_print(id, print_chat, "You have selected The JailBreakShop");
                }
                case 2:
                {
                        client_cmd(id, "say /ac")
                        client_print(id, print_chat, "You have selected The Achievements Menu");
                }
                case 3:
                {
                        client_cmd(id, "say /playtime")
                        client_print(id, print_chat, "You have selected Playtime Menu");
                }
                case 4:
                {
                        client_cmd(id, "say /cashtop")
                        client_print(id, print_chat, "You have selected Cashtop");
                }
                case 5:
                {
                        client_cmd(id, "say /rules")
                        client_print(id, print_chat, "You have selected Rules");
                }
           case 6:
           {
           show_menu_team(id)
           }
        }
 
        menu_destroy(menu);
 
        return PLUGIN_HANDLED;
}

Last edited by nixh; 05-31-2014 at 13:43.
nixh 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 09:48.


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