the error i am getting says:
non existent/empty function functionmain_restart_game()
my main game loop consists of:
// main game loop
while(1)
{
if(gid01_level_state != gid01_level_loaded)
{
freeze_mode = 1; // pause the game
while(gid01_level_state != gid01_level_loaded) {
wait(1); }
freeze_mode = 0; // resume the game
if (vid_played == 0) {
media_play(video_start, NULL, 80);
vid_played = 1; }
wait(1);
}
}
// Desc: this is the function used to restart the game.
function main_restart_game() {
// wait 3 frames (for triple buffering) until it is flipped to the foreground
wait(3);
// freeze the game
freeze_mode = 1;
if( game_load("start",0) <= 0)
{
diag("\nWARNING! main_restart_game - Cannot load 'start' of level.");
}
else
{
diag("\nWDL: main_restart_game - Game 'start' loaded");
}
// un-freeze the game
freeze_mode = 0;
}
// Desc: this is the function used to quit the game.
function main_quit()
{
//+++ // save global skills & strings
exit;
}
and i have searched through all my other scripts and found no instances or callings of this particular function.
does anyone know what is going on ??
any help would be greatly appreciated.