Fixed bug where not-found natives were still valid
This commit is contained in:
parent
a89e1ac536
commit
3863bd3ccc
|
@ -332,6 +332,7 @@ int set_amxnatives(AMX* amx,char error[128])
|
|||
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);
|
||||
return (amx->error = AMX_ERR_NATIVE);
|
||||
}
|
||||
|
||||
return AMX_ERR_NONE;
|
||||
|
|
Loading…
Reference in New Issue
Block a user