void warn(string str)

Outputs given warning string to command window, followed by newline, and show this string in a messagebox to alert user.