Raised This Month: $ Target: $400
 0% 

[Help]Menu edit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-18-2010 , 01:51   Re: [Help]Menu edit
Reply With Quote #1

Quote:
Originally Posted by Emp` View Post
A simple way you can add an exit item back would be to do:
Code:
menu_additem(hnsmenu, "Exit", "0", ADMIN_ALL)
And you wouldn't need to edit any of the menu handler function.
But wont it require an edition in the menu handler function
Code:
public menu_handler ( .... ) // ... Lots of code     case 0: menu_destroy( menu_id )
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-18-2010 , 02:28   Re: [Help]Menu edit
Reply With Quote #2

Quote:
Originally Posted by abdul-rehman View Post
But wont it require an edition in the menu handler function
Code:
public menu_handler ( .... ) // ... Lots of code     case 0: menu_destroy( menu_id )
No. If you looked at the code you would know that the menu is destroyed at the bottom of the handler.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 11:23.


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