show_error


描述

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.


语法:

show_error(str, abort);

参数 描述
str The string to show in the pop-up message.
abort Whether to abort (true) or not (false).


返回:

N/A(无返回值)


例如:

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.