Raised This Month: $ Target: $400
 0% 

menu callback problem?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 08-13-2012 , 06:30   menu callback problem?
Reply With Quote #1

Hi, i'm using
Code:
new cb = menu_makecallback( "callback_BonusMenu" );
for all items in menu, and also i'm removing exit button
Code:
menu_setprop( iMenu, MPROP_EXIT, MEXIT_NEVER );

My problem is, how can player close the menu if all options in menu are disabled by callback??

callback:
Code:
public callback_BonusMenu( id, menu, item ) {     if( item == ( CheckSkill( id ) - 1 ) || CheckMaxPoint( id, item ) )         return ITEM_DISABLED;         return ITEM_ENABLED; }
OvidiuS is offline
Send a message via Skype™ to OvidiuS
 



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 05:45.


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