mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
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 )
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user