mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Added more error reporting
This commit is contained in:
parent
ec55a2ab97
commit
b0315f5d56
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user