/////////////////////////////////////////////////////////////////////////////////// // REAL TIME STRATEGY ADVENTURE - Kit // FILE: rtsa_headere // NAME: Header Error Reporting // SCRIPTED BY: Deva Bryson Winblood // DATE: 03/26/2003 /////////////////////////////////////////////////////////////////////////////////// /* This header provides an error function which will send errors to the log file as well as put them on the screen for the player designated. */ int RTSA_DEBUG_ON = FALSE; // set this to true if you want debug messages reported void fnDebug(string sMsg, object oPC=OBJECT_INVALID) { // debug messages object oRecipient=oPC; if (oPC==OBJECT_INVALID) oRecipient=GetFirstPC(); if (RTSA_DEBUG_ON) { // debug message ok SendMessageToPC(oRecipient,sMsg); PrintString("DEBUG MODE:"+sMsg); } // debug message ok } // fnDebug() void fnError(string sErr, object oPC=OBJECT_INVALID) { // error messages object oRecipient=oPC; if (oPC==OBJECT_INVALID) oRecipient=GetFirstPC(); SendMessageToPC(oRecipient,sErr); PrintString(sErr); } // error messages