I want it but it is not working. Could you check the mistake in the plugin?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include < svn_version >
#if AMXX_VERSION_NUM >= 175
#pragma reqlib mapname_patcher
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib mapname_patcher
#endif
#else
#pragma library mapname_patcher
#endif
/* MapName length should be longer than 0 and shorter than 129 */
native Patch_MapName( MapName[ ] );
#define MAPNAME_PATCHER_INCLUDED
#endif
public plugin_init() {
register_plugin("MapName", "1.0", "PurposeLess")
}
public plugin_cfg()
Patch_MapName("PurposeLess")
And here are these mistakes
Code:
/home/araclar/compiler/include/svn_version.inc(14) : warning 201: redefinition of constant/macro (symbol "AMXX_VERSION")
/home/araclar/compiler/include/svn_version.inc(15) : warning 201: redefinition of constant/macro (symbol "AMXX_VERSION_NUM")
/home/araclar/compiler/include/svn_version.inc(16) : error 021: symbol already defined: "AMXX_VERSION_STR"
//cstrike/addons/amxmodx/scripting/mapxsa.sma(21) : error 026: no matching "#if..."
2 Errors.
Could not locate output file /cstrike/addons/amxmodx/plugins/mapxsa.amx (compile failed).