DeveloperConsole.DeveloperConsole.PrintError C# (CSharp) Method

PrintError() public method

Prints an error line to the console
public PrintError ( string s ) : void
s string The message
return void
        public void PrintError(string s)
        {
            PrintLine("[Error] " + s, Color.FromArgb(ConsoleSettings.TextAlpha, Color.Red.R, Color.Red.G, Color.Red.B));
        }

Usage Example

 private void TpCommand()
 {
     GTAFuncs.RequestEntityControl(_player.Character, 5);
     if (_lastWaypoint == null)
     {
         _developerConsole.PrintError("Cannot teleport to waypoint. No waypoint exists.");
         return;
     }
     GTAFuncs.GetPlayerEntity(_player).Position =
         GTAFuncs.GetGroundPos(new Vector2(_lastWaypoint.Position.X, _lastWaypoint.Position.Y));
 }