This has the same effect as the UI message() function. To use this as of version 2.1 set the cvar "scriptErrors" to 1 via the SetCVar() function.