Raised This Month: $ Target: $400
 0% 

I have a problem for show menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-25-2009 , 13:57   Re: I have a problem for show menu
Reply With Quote #2

PHP Code:
    show_menus(id"Give a Pistol""menu_pistol"items_gmenu

PHP Code:
    show_menus(id"Give a Pistol""menu_pistol"items_pmenu
---------------------
PHP Code:
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)


PHP Code:
stock show_menus(idtitle[], handle[], weaponconst[][])
{
    new 
menu menu_create(titlehandle)
    static 
num[10], i
    
for(sizeof weaponconst i++) // i < ... not 1 <
    
{
        
num_to_str(inum9)
        
menu_additem(menuweaponconst[i], num// don't index num[] variable, it's a string
    
}
    
menu_display(idmenu0)

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:02.


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