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?