Open twisterniq opened 5 years ago
There is no defined limit for such native, but the string retrieval relies on the static AMXX buffer.
Currently in version 1.9, this buffer length is set to 16kb
, which is quite a lot.
Can you show an example? It seems odd you need that much size for a single cvar description.
Sure, here is what I see in the configuration file:
The description is taken from a lang file:
SHOP_CVAR_REFLECTION_DAMAGE_ITEMFLAGS = Флаги для регистрации предмета^na - без флагов^nb - только для живых^nc - только для мёртвых^nd - только для контр-террористов^ne - только для террористов^nf - только для наблюдателей
It doesn't show it completely. I generate the configuration file with AutoExecConfig() native. AMXX 1.10.5257.
Actually it's limited in the config generation: https://github.com/alliedmodders/amxmodx/blob/975d8778005842efb0a2729f09017c359176f58d/amxmodx/CoreConfig.cpp#L184
Title. The length limit in the description field of create_cvar native is too small.