show_error

Displays a pop-up message with a custom error string.

Syntax:

show_error(str, abort);


Argument Description
str The string to show in the pop-up message.
abort Whether to abort (true) or not (false).


Returns: N/A


Description

This function will show a custom string as an error message and give the option to abort the game afterwards if necessary.

NOTE: THIS FUNCTION IS FOR DEBUG USE ONLY.


Example:

if room != rm_Dungeon
{
show_error("Error: Went to wrong area. Aborting game.", true);
}

The above code will check to see if the room that the player is in is "rm_Dungeon" and if not it will show an error message and force the user to abort the game.


Back: Debugging
Next: show_message
© Copyright YoYo Games Ltd. 2018 All Rights Reserved