Raised This Month: $ Target: $400
 0% 

Error copiler


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 01-30-2019 , 10:36   Error copiler
Reply With Quote #1

hi i need help to these idk what i do wrong =]

PHP Code:
// Generated with v3x's AMXX Menu Generator

#include <amxmodx>

public plugin_init()
{
    
register_plugin("My Menu""1.0""Me");
    
register_clcmd("say /menu""ShowMenu"_"Brings up menu");
}

public 
ShowMenu(id)
{
    new 
menu menu_create("Menu Weapons""Menu Weapons");

    
menu_additem(menu"AWP"""0); // case 0
    
menu_additem(menu"AK47"""0); // case 1
    
menu_additem(menu"DEAGLE"""0); // case 2
    
menu_additem(menu""""0); // case 3

    
menu_setprop(menuMPROP_EXITMEXIT_ALL);
    
menu_setprop(menuMPROP_BACKNAME"INAPOI");
    
menu_setprop(menuMPROP_NEXTNAME"INAINTE");
    
menu_setprop(menuMPROP_EXITNAME"AFARA");

    
menu_display(idmenu0);

    return 
PLUGIN_HANDLED;
}

public 
Menu Weapons(idmenuitem)
{
    if(
item == MENU_EXIT)
    {
        
menu_cancel(id);
        return 
PLUGIN_HANDLED;
    }

    new 
command[6], name[64], accesscallback;

    
menu_item_getinfo(menuitemaccesscommandsizeof command 1namesizeof name 1callback);

    switch(
item)
    {
        case 
0client_print(idprint_chat"You have selected AWP");
        case 
1client_print(idprint_chat"You have selected AK47");
        case 
2client_print(idprint_chat"You have selected DEAGLE");
        case 
3client_print(idprint_chat"You have selected ");
    }

    
menu_destroy(menu);

    return 
PLUGIN_HANDLED;


Last edited by Dragos; 01-30-2019 at 10:37.
Dragos 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 07:33.


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