Fixed bug where not-found natives were still valid

This commit is contained in:
David Anderson 2005-07-19 16:12:48 +00:00
parent a89e1ac536
commit 3863bd3ccc

View File

@ -332,6 +332,7 @@ int set_amxnatives(AMX* amx,char error[128])
if ( amx_Register(amx, core_Natives, -1) != AMX_ERR_NONE ) if ( amx_Register(amx, core_Natives, -1) != AMX_ERR_NONE )
{ {
sprintf(error, "Plugin uses an unknown function (name \"%s\") - check your modules.ini.", no_function); sprintf(error, "Plugin uses an unknown function (name \"%s\") - check your modules.ini.", no_function);
return (amx->error = AMX_ERR_NATIVE);
} }
return AMX_ERR_NONE; return AMX_ERR_NONE;