From b0315f5d56eaee13c1d8bcbaa93df1cf66bac18c Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 12 Sep 2004 04:35:24 +0000 Subject: [PATCH] Added more error reporting --- amxmodx/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 3591654d..755f0d77 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -330,7 +330,7 @@ int set_amxnatives(AMX* amx,char error[64]) { NULL, NULL }, }; amx_Register(amx, p, -1); - if (CheckModules(amx, error) == -1) + if (CheckModules(amx, error) == -1 || *error == 0) { sprintf(error,"Plugin uses an unknown function (name \"%s\") - check your modules.ini.",save.c_str()); }