Raised This Month: $ Target: $400
 0% 

Send data to menu?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-16-2009 , 14:05   Re: Send data to menu?
Reply With Quote #5

If you are using the new menu system you can do it.
Put data as the third parameter in menu_additem

Then you can retrieve the data in the menu_handler like:
Code:
    //now lets create some variables that will give us information about the menu and the item that was pressed/chosen
    new data[6], iName[64]
    new access, callback
    //heres the function that will give us that information (since it doesnt magicaly appear)
    menu_item_getinfo(menu, item, access, data,5, iName, 63, callback)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 08:59.


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