View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-19-2020 , 07:42   Re: Simple Menu Builder
Reply With Quote #173

Quote:
I just added them back and that is not the problem and i don't see the reason why it would be.
since i'm using the menu as you advised.
Yup, just checked the code and there will be no problem caused if there are no default options.

Quote:
any reason why there is no cvar or config in the ini for the max menus?

i mean, you recommend no more than 20 menus for any particular performance reason or memory limit?

if i want to go nuts and add like 80 menus would it make any difference in performance?
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.

Quote:
Originally Posted by Snake. View Post
[SUGGESTION] Play sound when players don't have access required.

Code:
MENU_NOACCESS_SOUND =
Added in my to-do list.
__________________

Last edited by OciXCrom; 12-19-2020 at 07:45.
OciXCrom is offline
Send a message via Skype™ to OciXCrom