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

menu_addtext glitch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-18-2019 , 10:36   menu_addtext glitch
Reply With Quote #1

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
__________________








CrazY. is offline
Old 02-18-2019, 10:42
HamletEagle
This message has been deleted by HamletEagle.
PartialCloning
Senior Member
Join Date: Dec 2015
Old 02-18-2019 , 10:59   Re: menu_addtext glitch
Reply With Quote #2

Use menu_addtext2.
PartialCloning is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-18-2019 , 11:23   Re: menu_addtext glitch
Reply With Quote #3

menu_addtext2 shift the numbering down, slot=0 it's just for visual shift.
__________________








CrazY. is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-18-2019 , 13:29   Re: menu_addtext glitch
Reply With Quote #4

Quote:
Originally Posted by CrazY. View Post
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"?
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-18-2019 , 15:43   Re: menu_addtext glitch
Reply With Quote #5

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.
__________________









Last edited by CrazY.; 02-18-2019 at 15:44.
CrazY. is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viņa del Mar, Chile
Old 02-21-2019 , 21:15   Re: menu_addtext glitch
Reply With Quote #6

Quote:
Originally Posted by CrazY. View Post
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
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 02-21-2019 , 22:05   Re: menu_addtext glitch
Reply With Quote #7

yes i agree with you.
__________________








CrazY. is offline
thEsp
BANNED
Join Date: Aug 2017
Old 02-22-2019 , 09:53   Re: menu_addtext glitch
Reply With Quote #8

I noticed this in 1.8.x too, even with the slot 1(second paramater).
thEsp is offline
Reply


Thread Tools
Display Modes

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 16:09.


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