Raised This Month: $ Target: $400
 0% 

I have a problem for show menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
larito
Veteran Member
Join Date: Nov 2008
Location: Argentina- Mendoza
Old 08-25-2009 , 13:53   I have a problem for show menu
Reply With Quote #1

With say in the title , i have a problem with show menu, here is my code..

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

new const items_pmenu[][] = {"Glock""Usp""Compac""Deagle""Five Seven""Dual Elite"}
new const 
weapons_pmenu[][] = {"weapon_glock18""weapon_usp""weapon_p228""weapon_deagle""weapon_fiveseven""weapon_elite"}

public 
plugin_init()
{
    
register_plugin("Show Weap Menu","1.0""Darckbaston")
    
register_clcmd("say /show_menu""menu")
}

public 
menu(id)
{                           
    
show_menus(id"Give a Pistol""menu_pistol"items_gmenu)
}  

public 
menu_pistol(idmenuitem)
{
    if(
item == MENU_EXIT) return PLUGIN_HANDLED;
    new 
data[6], iName[64], iaccesscallback
    menu_item_getinfo
(menuitemiaccessdata,5iName63callback)
    new 
key str_to_num(data)
    
give_item(idweapons_pmenu[key])
    return 
PLUGIN_HANDLED
}    
  
stock show_menus(idtitle[], handle[], weaponconst[][])
{
    new 
menu menu_create(titlehandle)
    static 
num[10], i
    
for(sizeof weaponconst i++)
    {
        
num_to_str(inum9)
        
menu_additem(menuweaponconst[i], num[i])
    }
    
menu_display(idmenu0)

Here is my error:
[IMG]http://img81.**************/img81/3757/sdassada.png[/IMG]

Thx!
__________________
Facebook: Ariel Berardi
larito is offline
Send a message via MSN to larito
 


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 15:02.


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