alliedmodders / amxmodx

AMX Mod X - Half-Life 1 Scripting and Administration
http://www.amxmodx.org/
489 stars 197 forks source link

Fix OnConfigsExecuted issue. (restmenu.sma and adminhelp.sma is broken) #1022

Closed UnrealKaraulov closed 2 years ago

UnrealKaraulov commented 2 years ago

OnConfigsExecuted not executed and broke all plugins where used this forward. Even default like restmenu.sma and adminhelp.sma!

UnrealKaraulov commented 2 years ago

@dvander

Description:

If any config matches the conditions, then forward OnConfigsExecuted will never be executed and this will lead to errors in all plugins where OnConfigsExecuted is used.

UnrealKaraulov commented 2 years ago

For example execute function from any plugin at plugin_init or plugin_precache:

server_cmd("configdir/amxx.cfg") or server_cmd("config/maps_cfg/map.cfg") and forward OnConfigsExecuted will never be executed

UnrealKaraulov commented 2 years ago

@dvander It doesn't matter which command, the main thing is that amxx.cfg or /maps are present there.

UnrealKaraulov commented 2 years ago

A more visual representation can be seen here: https://github.com/alliedmodders/amxmodx/issues/728