From eeebee0e18c13d679c261d342e58ccb86b13423b Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Mon, 28 Jun 2004 18:12:26 +0000 Subject: [PATCH] Changed report_error behavior --- amxmodx/modules.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/amxmodx/modules.cpp b/amxmodx/modules.cpp index 82dd2610..f75d1e12 100755 --- a/amxmodx/modules.cpp +++ b/amxmodx/modules.cpp @@ -54,14 +54,14 @@ void report_error( int code, char* fmt, ... ) string[255] = 0; va_end (argptr); if ( *string ) { - //File fp( "error_amx.log","a" ); - //fp << string; + AMXXLOG_Log("Error:"); AMXXLOG_Log(string); - AMXXLOG_Log("[AMXX] Make sure that modules are compatible with AMX Mod X %s" , AMX_VERSION ); - AMXXLOG_Log("[AMXX] Please fix the problem then start the server again" ); } - sleep( 5 ); - exit( code ); + else + { + AMXXLOG_Log("!!! There was an unexpected module error."); + AMXXLOG_Log("The server may not work correctly."); + } } void print_srvconsole( char *fmt, ... ) @@ -409,7 +409,7 @@ int loadModules(const char* filename) return loaded; } -void detachModules() +void dettachModules() { CList::iterator a = g_modules.begin(); @@ -420,7 +420,7 @@ void detachModules() } } -void detachReloadModules() +void dettachReloadModules() { CList::iterator a = g_modules.begin();