Raised This Month: $ Target: $400
 0% 

Help with formatex


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rak
Veteran Member
Join Date: Oct 2011
Location: banned country
Old 05-09-2012 , 19:28   Re: Help with formatex
Reply With Quote #1

use callback
__________________

www.amxmodx-es.com

Steam: Luchokoldo
rak is offline
Send a message via MSN to rak Send a message via Skype™ to rak
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-09-2012 , 21:02   Re: Help with formatex
Reply With Quote #2

Like this, and for another example you can look at my BombSite Lock plugin.
PHP Code:
public ShowMenuid )
{
    new 
iMenu menu_create"A Menu" "MenuHandler" );
    new 
iCallBack menu_makecallback"MenuCallBack" );
    
    
menu_additemiMenu "Item1" , .callback iCallBack );
    
menu_additemiMenu "Item2" , .callback iCallBack );
    
    
menu_displayid iMenu );
    
    return 
PLUGIN_HANDLED;
}

public 
MenuHandlerid iMenu iItem )
{

}

public 
MenuCallBackid iMenu iItem )
{    
    return 
HasAchievementid ] ? ITEM_ENABLED ITEM_DISABLED;

__________________

Last edited by Bugsy; 05-09-2012 at 21:05.
Bugsy is offline
Reply



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 00:22.


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