Raised This Month: $ Target: $400
 0% 

Menu Dont show up..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Elusive138
Senior Member
Join Date: Dec 2010
Old 01-07-2011 , 03:26   Re: Menu Dont show up..
Reply With Quote #6

Ok... what?
Quote:
PHP Code:
    new data[6], iName[64], accesscallback
    new 
key str_to_num(data); 
    switch(
key
    { 
        case 
1
        { 
            
ShowWeaponMenu(id); 
            return 
PLUGIN_HANDLED
        } 
    } 
Key will always be 0... menu_item_getinfo needs to be above the str_to_num for this to work.

Alternatively, you could just use item. The first menu item is 0, the second is 1, etc. So:
PHP Code:
if (item == 0)
{
    
ShowWeaponMenu(id)
    return 
PLUGIN_HANDLED


Last edited by Elusive138; 01-07-2011 at 03:35.
Elusive138 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 02:12.


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