mirror of
https://github.com/rehlds/reapi.git
synced 2025-03-13 05:50:16 +03:00
AMXX_Error: log into error_*.log
This commit is contained in:
parent
3152021842
commit
ef5283715c
@ -233,11 +233,11 @@ NOINLINE void AMXX_Error(AMX *amx, const char *fmt, ...)
|
||||
auto scriptName = g_amxxapi.GetAmxScriptName(g_amxxapi.FindAmxScriptByAmx(amx));
|
||||
if (scriptName)
|
||||
{
|
||||
if ((scriptName = strrchr(scriptName, '/')))
|
||||
if ((scriptName = strrchr(scriptName, CORRECT_PATH_SEPARATOR)))
|
||||
scriptName++;
|
||||
}
|
||||
|
||||
g_amxxapi.Log("[%s] %s", scriptName, msg);
|
||||
g_amxxapi.LogError(amx, AMX_ERR_ASSERT, "[%s] %s", scriptName, msg);
|
||||
}
|
||||
|
||||
char* getAmxString(cell* src, char* dest, size_t max, size_t* len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user