Raised This Month: $ Target: $400
 0% 

new menu problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Adomaz1
Senior Member
Join Date: Feb 2014
Old 01-19-2017 , 10:21   new menu problem
Reply With Quote #1

I have created a menu and I want to make it multilined, like to add a couple of lines in the title, but it makes extra line, like this:

Code:
Menu Title:

Extra Line
Extra Line




1. 1st option
2. 2nd option
3. 3rd option

0. Exit
I tried changing the charsmax but then it removes some letters or makes new lines. And another problem is that the Exit line ML doesn't work.

code:
Code:
public test(id)
{
	new szInfo[256];
	formatex(szInfo, charsmax(szInfo), "%L", id, "multilanguage")
	
	new menu = menu_create(szInfo, "menu_handle");
	
	formatex(szInfo, charsmax(szInfo), "%L", id, "multilanguage1")
	menu_additem(menu, szInfo, "1");
        formatex(szInfo, charsmax(szInfo), "%L", id, "multilanguage1")
	menu_additem(menu, szInfo, "2");
	
	new szExit[15];
	formatex(szExit, charsmax(szExit), "%L", id, "EXIT_MENU")
	menu_setprop(menu, MPROP_EXIT, szExit);
	
	menu_display(id, menu, 0);
	
	return PLUGIN_HANDLED;
}
What could be the problem?
Adomaz1 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 19:46.


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