Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,791 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
script error E355 #140100
07/08/07 12:55
07/08/07 12:55
Joined: Sep 2006
Posts: 41
B
blakegoat Offline OP
Newbie
blakegoat  Offline OP
Newbie
B

Joined: Sep 2006
Posts: 41
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.

Re: script error E355 [Re: blakegoat] #140101
07/08/07 17:16
07/08/07 17:16
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Maybe, you assign this function to an entity?

Re: script error E355 [Re: blakegoat] #140102
07/08/07 19:13
07/08/07 19:13
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
maybe you have to declare a function prototype anywhere.


Moderated by  old_bill, Tobias 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1