This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Menu exit!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gh05t04
Senior Member
Join Date: Jul 2015
Old 07-19-2015 , 09:31   Menu exit!
Reply With Quote #1

How can I change instead of displaying "Exit" I want to say "Sair" to exit the menu, can someone help me?

PHP Code:
public primgun_menu(id)
{    
    if(!
IsPlayer(id))
        return 
PLUGIN_HANDLED
        
    
new primgunmenu menu_create("\yNew menu:""sub_primgun_menu")

    
menu_additem(primgunmenu"\w1""1"0);
    
menu_additem(primgunmenu"\w2""2"0);
    
menu_additem(primgunmenu"\w3""3"0);
    
menu_additem(primgunmenu"\w4""4"0);
    
menu_additem(primgunmenu"\w5""5"0);
    
menu_additem(primgunmenu"\w6""6"0);
    
menu_additem(primgunmenu"\w7""7"0);
        
    
menu_setprop(primgunmenuMPROP_EXITMEXIT_ALL);
    
menu_display(idprimgunmenu0);
    return 
PLUGIN_HANDLED


Last edited by Gh05t04; 07-19-2015 at 09:31.
Gh05t04 is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-19-2015 , 10:12   Re: Menu exit!
Reply With Quote #2

To hide or cancel a menu
PHP Code:
show_menuid0"^n"); 

Last edited by indraraj striker; 07-19-2015 at 10:12.
indraraj striker is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-19-2015 , 10:26   Re: Menu exit!
Reply With Quote #3

He doesn't want to hide something, he want's it to be in his language

Learn how to use ML-system
__________________

Mordekay is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 07-19-2015 , 23:52   Re: Menu exit!
Reply With Quote #4

menu_setprop(primgunmenu, MPROP_EXITNAME, "\wSair")

lol
Syturi0 is offline
Gh05t04
Senior Member
Join Date: Jul 2015
Old 07-20-2015 , 06:21   Re: Menu exit!
Reply With Quote #5

Thx alot!
Gh05t04 is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-20-2015 , 08:53   Re: Menu exit!
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
He doesn't want to hide something, he want's it to be in his language

Learn how to use ML-system
his title and description doesnt make any sense
Title :Menu exit
Description: instead of displaying "Exit" I want to say "Sair" to exit the menu
i thought he want clcmd /sair to exit menu
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2015 , 21:57   Re: Menu exit!
Reply With Quote #7

Quote:
Originally Posted by indraraj striker View Post
his title and description doesnt make any sense
Title :Menu exit
Description: instead of displaying "Exit" I want to say "Sair" to exit the menu
i thought he want clcmd /sair to exit menu
How in the world did you think he wanted a new command???? His description is very clear . . .
__________________
fysiks is offline
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 07-26-2015 , 02:58   Re: Menu exit!
Reply With Quote #8

Becoz of this sentence I want to say "Sair" to exit the menu
i thought he want clcmd say /sair to exit menu
okay close this topic
indraraj striker is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-26-2015 , 12:14   Re: Menu exit!
Reply With Quote #9

Quote:
Originally Posted by indraraj striker View Post
Becoz of this sentence I want to say "Sair" to exit the menu
i thought he want clcmd say /sair to exit menu
okay close this topic
I guess it would have been more clear if he said:

Quote:
Originally Posted by Gh05t04 View Post
How can I change instead of displaying "Exit" I want it to say "Sair" to exit the menu, can someone help me?
Maybe if the OP would post again, we would find out which he actually meant.
__________________
fysiks 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 14:11.


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