2
0
mirror of https://github.com/s1lentq/reapi.git synced 2024-10-16 23:37:07 +03:00

AMXX_Error: log into error_*.log

This commit is contained in:
s1lent 2017-11-13 19:39:20 +07:00
parent 3152021842
commit ef5283715c
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
2 changed files with 4 additions and 4 deletions

View File

@ -584,8 +584,8 @@ enum GamedllFunc_CSGameRules
/*
* Description: Recreate all the map entities from the map data (preserving their indices),
* then remove everything else except the players.
* Also get rid of all world decals.
* then remove everything else except the players.
* Also get rid of all world decals.
* Params: ()
*/
RG_CSGameRules_CleanUpMap,

View File

@ -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)