AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   menu_addtext glitch (https://forums.alliedmods.net/showthread.php?t=314439)

CrazY. 02-18-2019 10:36

menu_addtext glitch
 
Hello, I noticed that menu_addtext with slot=0 cause an error when added before items.

Code:

L 02/18/2019 - 12:35:25: Blanks can only be added after items.
AMX Mod X version
Code:

AMX Mod X 1.9.0.5234 (http://www.amxmodx.org)
Authors:
        David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
        Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
        Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
        Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Nov  3 2018 14:55:35
Built from: https://github.com/alliedmodders/amxmodx/commit/9eb1f427
Build ID: 5234:9eb1f427
Core mode: JIT+ASM32


PartialCloning 02-18-2019 10:59

Re: menu_addtext glitch
 
Use menu_addtext2.

CrazY. 02-18-2019 11:23

Re: menu_addtext glitch
 
menu_addtext2 shift the numbering down, slot=0 it's just for visual shift.

meTaLiCroSS 02-18-2019 13:29

Re: menu_addtext glitch
 
Quote:

Originally Posted by CrazY. (Post 2640168)
Hello, I noticed that menu_addtext with slot=0 cause an error when added before items.

Code:

L 02/18/2019 - 12:35:25: Blanks can only be added after items.
AMX Mod X version
Code:

AMX Mod X 1.9.0.5234 (http://www.amxmodx.org)
Authors:
        David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko
        Felix "SniperBeamer" Geyer, Jonny "Got His Gun" Bergstrom
        Lukasz "SidLuke" Wlasinski, Christian "Basic-Master" Hammacher
        Borja "faluco" Ferrer, Scott "DS" Ehlert
Compiled: Nov  3 2018 14:55:35
Built from: https://github.com/alliedmodders/amxmodx/commit/9eb1f427
Build ID: 5234:9eb1f427
Core mode: JIT+ASM32


It clearly details you the error, why are you considering this as a "Glitch"?

CrazY. 02-18-2019 15:43

Re: menu_addtext glitch
 
menu_addtext2 work even if added before items. Also, this error is supposed to happen only when you try to add a blank line (menu_addblank). Well, that's what I thought, but not what looks like in source code.

meTaLiCroSS 02-21-2019 21:15

Re: menu_addtext glitch
 
Quote:

Originally Posted by CrazY. (Post 2640200)
menu_addtext2 work even if added before items. Also, this error is supposed to happen only when you try to add a blank line (menu_addblank). Well, that's what I thought, but not what looks like in source code.

Because menu_addtext2 internally adds an item (considered as text) which affects menu's numeration. I think newmenues system should be reworked, because it just allows items and nothing else, there must be more options like posibility for adding text after title on all pages, text at the bottom on all pages, text after/before pagination items on all pages, and others

CrazY. 02-21-2019 22:05

Re: menu_addtext glitch
 
yes i agree with you.

thEsp 02-22-2019 09:53

Re: menu_addtext glitch
 
I noticed this in 1.8.x too, even with the slot 1(second paramater).


All times are GMT -4. The time now is 05:43.

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