Raised This Month: $ Target: $400
 0% 

Help with Code ..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
EpicFail.
Senior Member
Join Date: May 2010
Old 08-24-2010 , 20:16   Re: Help with Code ..
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Re-show the menu in the handling function. Directly before return PLUGIN_HANDLED but after menu_destroy (if the menu is not global).

Hm ..
Like this ? Code:
PHP Code:
new menuname[64]
    
formatexmenuname63"\r[\wjG`\r] \wHns Shop^nHealth Menu^nYour Cash: %d\y$"cs_get_user_moneyid ) );
    new 
hmenu menu_createmenuname"health_handler" );
    
    new 
iMoney cs_get_user_moneyid )
    
    new 
Health25[30]
    
formatexHealth25charsmax(Health25), "25 Health \r- %s\W%d\Y$", ( iMoney >= HEALTH25_COST ) ? "\w" "\d"HEALTH25_COST );
    
menu_additem(hmenuHealth25"1"0);
     
    new 
Health50[30]
    
formatex(Health50charsmax(Health50), "50 Health \r- %s\W%d\Y$", ( iMoney >= HEALTH50_COST ) ? "\w" "\d"HEALTH50_COST );
         
menu_additem(hmenuHealth50"2"0);
    
    
menu_setprophmenuMPROP_EXITMEXIT_ALL );
    
menu_setprophmenuMPROP_EXITNAME"\wBack" );
    
    
menu_displayidhmenu);
    
    return 
PLUGIN_CONTINUE
EpicFail. 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 21:50.


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