Raised This Month: $ Target: $400
 0% 

Handle Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 04-19-2013 , 09:47   Re: Handle Menu
Reply With Quote #7

Hum what you saying i could do to xD
Sorry if i didnt gave all info...
The problem is that i use menu that loads items from cfg file, so i cant do as you say, because the second page are together with the others.
And i just want it show second page, in case of chose something from second page.
Here part of code:
PHP Code:
public Music_Options(idmenuitem)
{
    if (
item == MENU_EXIT)
    {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    new 
info[3], name[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessinfo2name63callback)
    
    new 
key str_to_num(info)
    
    if(
key == 1)
        
client_cmd(id"mp3 stop")
        
    else
    {
        new 
szSongName[64]
        
TrieGetString(g_tSongsnameszSongName63)
        
client_cmd(id"mp3 play %s"szSongName)
    }
    
    return 
PLUGIN_CONTINUE

__________________
Jhob94 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 10:50.


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