Raised This Month: $ Target: $400
 0% 

Finding a name in the .ini


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Baws
Veteran Member
Join Date: Oct 2012
Old 12-31-2013 , 19:56   Re: Finding a name in the .ini
Reply With Quote #10

But like for the menu i just do this?

PHP Code:
if(equali(say_args"/search"))
{
SearchSong(id)



public 
SearchSong(id)
{
    new 
menu menu_create("\ySeached for:\r""searchsong_handler")
    for( new 
1<= songcounti++ )
    {
        new 
num[3];
        
num_to_str(inum2);
        
menu_additem(menug_media_names[i], num);
    }
    
    
menu_display(idmenu);

    return 
PLUGIN_HANDLED;
}

public 
searchsong_handler(idmenuitem)
{
    if( 
item == MENU_EXIT )
    {
        
menu_destroy(menu);
        return 
PLUGIN_HANDLED;
    }
    
    new 
data[6], name[64]; 
    new 
accesscallback
    
menu_item_getinfo(menuitemaccessdatacharsmax(data), namecharsmax(name), callback);

    
songlistfile[id] = item
    
    play_media
(iditem);
    
    return 
PLUGIN_HANDLED;

__________________
Like my clean plugins and work?
Baws 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:09.


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