View Single Post
Ark_Procession
Senior Member
Join Date: Jun 2020
Location: Argentina
Old 12-19-2020 , 10:00   Re: Simple Menu Builder
Reply With Quote #174

Quote:
Originally Posted by OciXCrom View Post
Yup, just checked the code and there will be no problem caused if there are no default options.



The only reason is that the method I used to make the plugin requires it. I put 20 because I didn't expect anyone to ever use more than that and to avoid unused arrays for most people.

But yes, the error is indeed caused by you exceeding the number. The plugin is trying to access an invalid menu index, thus outputing "out of bounds" error.

You don't need to worry about any issues if you go nuts with it. The access to each menu is instant and isn't affected by how many there are. Heck, you can even use 1000 if you want.



Added in my to-do list.

I understand, i tend to use the menu for everything so clients don't have to bind stuff and it's wonderful. never been so easy to make clients reach commands without a information motd or anything, just open the menu and browse it.


Changed :

HTML Code:
#define MAX_MENUS 20
to
HTML Code:
#define MAX_MENUS 1000
And as you said, the problem disappeared.

thanks for helping me.
Ark_Procession is offline