Raised This Month: $51 Target: $400
 12% 

Menu characters maximum limit?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hembi
Member
Join Date: Mar 2013
Location: Hungary
Old 03-13-2015 , 21:51   Menu characters maximum limit?
Reply With Quote #1

Hy!

Sorry for this noob question, but I not found a good topic/not understand properly this:
http://i.cubeupload.com/JbrJHf.png
http://i.cubeupload.com/kgCNXG.png
http://i.cubeupload.com/2zNNf7.png

If I set my menu titles too long(too much characters), I get this bug/failure.

I think this is hard coded limit, but I hope that is not the case...

How much character is the maximum, what I can set to the menu titles on one page?
Can this be increased?

SMA:
Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <colorchat>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    register_clcmd("say /test", "test")
}

public test(id)
{
    new menu = menu_create("\rTest:", "test_handle");
    menu_additem(menu, "\yTest Menu Point 1 \r[Say to chat: Test 1] \yMenu Number: \w1");
    menu_additem(menu, "\yTest Menu Point 2 \r[Say to chat: Test 2] \yMenu Number: \w2");
    menu_additem(menu, "\yTest Menu Point 3 \r[Say to chat: Test 3] \yMenu Number: \w3");
    menu_additem(menu, "\yTest Menu Point 4 \r[Say to chat: Test 4] \yMenu Number: \w4");
    menu_additem(menu, "\yTest Menu Point 5 \r[Say to chat: Test 5] \yMenu Number: \w5");
    menu_additem(menu, "\yTest Menu Point 6 \r[Say to chat: Test 6] \yMenu Number: \w6");
    menu_additem(menu, "\yTest Menu Point 7 \r[Say to chat: Test 7] \yMenu Number: \w7");
    menu_additem(menu, "\yTest Menu Point 8 \r[Say to chat: Test 8] \yMenu Number: \w8");
    menu_additem(menu, "\yTest Menu Point 9 \r[Say to chat: Test 9]\yMenu Number: \w9");
    menu_additem(menu, "\yTest Menu Point 10 \r[Say to chat: Test 10]\yMenu Number: \w10");
    menu_additem(menu, "\yTest Menu Point 11 \r[Say to chat: Test 11]\yMenu Number: \w11");
    menu_additem(menu, "\yTest Menu Point 12 \r[Say to chat: Test 12]\yMenu Number: \w12");
    menu_additem(menu, "\yTest Menu Point 13 \r[Say to chat: Test 13] \yMenu Number: \w13");
    menu_additem(menu, "\yTest Menu Point 14 \r[Say to chat: Test 14] \yMenu Number: \w14");
    menu_additem(menu, "\yTest Menu Point 15 \r[Say to chat: Test 15] \yMenu Number: \w15");
    menu_display(id, menu);
}

public test_handle(id, menu, item)
{
    
    if(item == MENU_EXIT)
    {
        menu_destroy(menu)
        return PLUGIN_HANDLED
    }
    
    menu_display(id, menu)
    
    switch(item)
    {
        case 0:
        {
            ColorChat(id,GREEN,"[Plugin] Test 1.");
            return PLUGIN_CONTINUE;
        }
        case 1:
        {
            ColorChat(id,GREEN,"[Plugin] Test 2.");
            return PLUGIN_CONTINUE;
        }
        case 2:
        {
            ColorChat(id,GREEN,"[Plugin] Test 3.");
            return PLUGIN_CONTINUE;
        }
        case 3:
        {
            ColorChat(id,GREEN,"[Plugin] Test 4.");
            return PLUGIN_CONTINUE;
        }
        case 4:
        {
            ColorChat(id,GREEN,"[Plugin] Test 5.");
            return PLUGIN_CONTINUE;
        }
        case 5:
        {
            ColorChat(id,GREEN,"[Plugin] Test 6.");
            return PLUGIN_CONTINUE;
        }
        case 6:
        {
            ColorChat(id,GREEN,"[Plugin] Test 7.");
            return PLUGIN_CONTINUE;
        }
        case 7:
        {
            ColorChat(id,GREEN,"[Plugin] Test 8.");
            return PLUGIN_CONTINUE;
        }
        case 8:
        {
            ColorChat(id,GREEN,"[Plugin] Test 9.");
            return PLUGIN_CONTINUE;
        }
        case 9:
        {
            ColorChat(id,GREEN,"[Plugin] Test 10.");
            return PLUGIN_CONTINUE;
        }
        case 10:
        {
            ColorChat(id,GREEN,"[Plugin] Test 11.");
            return PLUGIN_CONTINUE;
        }
        case 11:
        {
            ColorChat(id,GREEN,"[Plugin] Test 12.");
            return PLUGIN_CONTINUE;
        }
        case 12:
        {
            ColorChat(id,GREEN,"[Plugin] Test 13.");
            return PLUGIN_CONTINUE;
        }
        case 13:
        {
            ColorChat(id,GREEN,"[Plugin] Test 14.");
            return PLUGIN_CONTINUE;
        }
        case 14:
        {
            ColorChat(id,GREEN,"[Plugin] Test 15.");
            return PLUGIN_CONTINUE;
        }
    }
    return PLUGIN_CONTINUE;
}

Last edited by Hembi; 03-13-2015 at 21:52.
Hembi is offline
wilianmaique
BANNED
Join Date: Nov 2016
Old 08-26-2017 , 19:34   Re: Menu characters maximum limit?
Reply With Quote #2

up
wilianmaique is offline
Send a message via Skype™ to wilianmaique
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-26-2017 , 20:18   Re: Menu characters maximum limit?
Reply With Quote #3

The whole menu limit is 512, also there is limit for title and each options, but not sure how much (around 200).
KiLLeR. 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:12.


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