mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
fixed log messages
This commit is contained in:
parent
7aa6902e36
commit
7961bae20b
@ -126,7 +126,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
|
|||||||
{
|
{
|
||||||
copy_amxmemory(phys_addr, m_pParams, m_iParamLen);
|
copy_amxmemory(phys_addr, m_pParams, m_iParamLen);
|
||||||
if ((err = amx_Exec(m_pPlugin->getAMX(), NULL, m_iFunc, 2, amx_addr, m_iId)) != AMX_ERR_NONE)
|
if ((err = amx_Exec(m_pPlugin->getAMX(), NULL, m_iFunc, 2, amx_addr, m_iId)) != AMX_ERR_NONE)
|
||||||
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (task \"%d\") (plugin \"%s\")", err, m_pPlugin->getAMX()->curline, m_iId, m_pPlugin->getName());
|
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (task \"%d\") (plugin \"%s\")", err, m_pPlugin->getAMX()->curline, m_iId, m_pPlugin->getName());
|
||||||
|
|
||||||
amx_Release(m_pPlugin->getAMX(), amx_addr);
|
amx_Release(m_pPlugin->getAMX(), amx_addr);
|
||||||
}
|
}
|
||||||
@ -134,7 +134,7 @@ void CTaskMngr::CTask::executeIfRequired(float fCurrentTime, float fTimeLimit, f
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((err = amx_Exec(m_pPlugin->getAMX(), NULL, m_iFunc, 1, m_iId)) != AMX_ERR_NONE)
|
if ((err = amx_Exec(m_pPlugin->getAMX(), NULL, m_iFunc, 1, m_iId)) != AMX_ERR_NONE)
|
||||||
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (task \"%d\") (plugin \"%s\")", err, m_pPlugin->getAMX()->curline, m_iId, m_pPlugin->getName());
|
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (task \"%d\") (plugin \"%s\")", err, m_pPlugin->getAMX()->curline, m_iId, m_pPlugin->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,7 +177,7 @@ int C_InconsistentFile( const edict_t *player, const char *filename, char *disco
|
|||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
AMXXLOG_Log( "[AMXX] fatal error at inconsistent file forward execution");
|
AMXXLOG_Log( "[AMXX] Fatal error at inconsistent file forward execution");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
RETURN_META_VALUE(MRES_SUPERCEDE, TRUE );
|
RETURN_META_VALUE(MRES_SUPERCEDE, TRUE );
|
||||||
@ -611,7 +611,7 @@ void C_ClientCommand( edict_t *pEntity ) {
|
|||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
AMXXLOG_Log( "[AMXX] fatal error at commmand forward execution");
|
AMXXLOG_Log( "[AMXX] Fatal error at commmand forward execution");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -634,7 +634,7 @@ void C_ClientCommand( edict_t *pEntity ) {
|
|||||||
{
|
{
|
||||||
|
|
||||||
if ((err =amx_Exec((*aa).getPlugin()->getAMX(), &ret , (*aa).getFunction() , 3, pPlayer->index, (*aa).getFlags(),(*aa).getId() )) != AMX_ERR_NONE)
|
if ((err =amx_Exec((*aa).getPlugin()->getAMX(), &ret , (*aa).getFunction() , 3, pPlayer->index, (*aa).getFlags(),(*aa).getId() )) != AMX_ERR_NONE)
|
||||||
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",
|
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",
|
||||||
err,(*aa).getPlugin()->getAMX()->curline,(*aa).getPlugin()->getName());
|
err,(*aa).getPlugin()->getAMX()->curline,(*aa).getPlugin()->getName());
|
||||||
|
|
||||||
if ( ret & 2 ) result = MRES_SUPERCEDE;
|
if ( ret & 2 ) result = MRES_SUPERCEDE;
|
||||||
@ -647,7 +647,7 @@ void C_ClientCommand( edict_t *pEntity ) {
|
|||||||
#ifdef ENABLEEXEPTIONS
|
#ifdef ENABLEEXEPTIONS
|
||||||
}catch( ... )
|
}catch( ... )
|
||||||
{
|
{
|
||||||
AMXXLOG_Log( "[AMXX] fatal error at client commmand execution");
|
AMXXLOG_Log( "[AMXX] fatal error at client commmand execution");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
/* check menu commands */
|
/* check menu commands */
|
||||||
@ -674,7 +674,7 @@ void C_ClientCommand( edict_t *pEntity ) {
|
|||||||
{
|
{
|
||||||
|
|
||||||
if ( ( err = amx_Exec((*a).getPlugin()->getAMX(), &ret ,(*a).getFunction() , 2, pPlayer->index,pressed_key)) != AMX_ERR_NONE)
|
if ( ( err = amx_Exec((*a).getPlugin()->getAMX(), &ret ,(*a).getFunction() , 2, pPlayer->index,pressed_key)) != AMX_ERR_NONE)
|
||||||
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",
|
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",
|
||||||
err,(*a).getPlugin()->getAMX()->curline,(*a).getPlugin()->getName());
|
err,(*a).getPlugin()->getAMX()->curline,(*a).getPlugin()->getName());
|
||||||
|
|
||||||
if ( ret & 2 ) result = MRES_SUPERCEDE;
|
if ( ret & 2 ) result = MRES_SUPERCEDE;
|
||||||
@ -688,7 +688,7 @@ void C_ClientCommand( edict_t *pEntity ) {
|
|||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
AMXXLOG_Log( "[AMXX] fatal error at menu commmand execution");
|
AMXXLOG_Log( "[AMXX] Fatal error at menu commmand execution");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -880,7 +880,7 @@ void C_MessageEnd_Post(void) {
|
|||||||
{
|
{
|
||||||
|
|
||||||
if ((err = amx_Exec((*a).getPlugin()->getAMX(), NULL , (*a).getFunction() , 1, mPlayerIndex /*g_events.getArgInteger(0)*/ )) != AMX_ERR_NONE)
|
if ((err = amx_Exec((*a).getPlugin()->getAMX(), NULL , (*a).getFunction() , 1, mPlayerIndex /*g_events.getArgInteger(0)*/ )) != AMX_ERR_NONE)
|
||||||
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",err,(*a).getPlugin()->getAMX()->curline,(*a).getPlugin()->getName());
|
AMXXLOG_Log("[AMXX] Run time error %d on line %ld (plugin \"%s\")",err,(*a).getPlugin()->getAMX()->curline,(*a).getPlugin()->getName());
|
||||||
|
|
||||||
|
|
||||||
++a;
|
++a;
|
||||||
@ -891,7 +891,7 @@ void C_MessageEnd_Post(void) {
|
|||||||
}
|
}
|
||||||
catch( ... )
|
catch( ... )
|
||||||
{
|
{
|
||||||
AMXXLOG_Log( "[AMXX] fatal error at event execution");
|
AMXXLOG_Log( "[AMXX] Fatal error at event execution");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user