mirror of
https://github.com/rehlds/reapi.git
synced 2025-03-13 14:00:19 +03:00
AMXX_Error: log into error_*.log
This commit is contained in:
parent
3152021842
commit
ef5283715c
@ -584,8 +584,8 @@ enum GamedllFunc_CSGameRules
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Description: Recreate all the map entities from the map data (preserving their indices),
|
* Description: Recreate all the map entities from the map data (preserving their indices),
|
||||||
* then remove everything else except the players.
|
* then remove everything else except the players.
|
||||||
* Also get rid of all world decals.
|
* Also get rid of all world decals.
|
||||||
* Params: ()
|
* Params: ()
|
||||||
*/
|
*/
|
||||||
RG_CSGameRules_CleanUpMap,
|
RG_CSGameRules_CleanUpMap,
|
||||||
|
@ -233,11 +233,11 @@ NOINLINE void AMXX_Error(AMX *amx, const char *fmt, ...)
|
|||||||
auto scriptName = g_amxxapi.GetAmxScriptName(g_amxxapi.FindAmxScriptByAmx(amx));
|
auto scriptName = g_amxxapi.GetAmxScriptName(g_amxxapi.FindAmxScriptByAmx(amx));
|
||||||
if (scriptName)
|
if (scriptName)
|
||||||
{
|
{
|
||||||
if ((scriptName = strrchr(scriptName, '/')))
|
if ((scriptName = strrchr(scriptName, CORRECT_PATH_SEPARATOR)))
|
||||||
scriptName++;
|
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)
|
char* getAmxString(cell* src, char* dest, size_t max, size_t* len)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user