Added more error reporting

This commit is contained in:
David Anderson 2004-09-12 04:35:24 +00:00
parent ec55a2ab97
commit b0315f5d56

View File

@ -330,7 +330,7 @@ int set_amxnatives(AMX* amx,char error[64])
{ NULL, NULL }, { NULL, NULL },
}; };
amx_Register(amx, p, -1); 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()); sprintf(error,"Plugin uses an unknown function (name \"%s\") - check your modules.ini.",save.c_str());
} }