I appologize I missed something but I looked at the latest post and something popped out at me of why this doesn't work, so if this was said already, my bad.

For the following code:
Code:

function go_back_to_game_startup()
{
while(seconds > 3)
{
if(seconds == 3)

{
level_load(startspill_wmb);
seconds = 40;
wait(3);
}
}
}



Notice the highlighted code, I'm assuming that you are continously counting down somewhere else, so then this code comes into play, it first checks if seconds are > 3, if it is, it goes into your loop, but if seconds = 3, the loop IS NOT STARTED, so your if statement if(seconds == 3) never gets triggered, I think what you want to do is make the while statement read

while(seconds >= 3)

That seems to be the piece of code that is incorrect, I didn't look any further but that should fix your current problem

EDIT: I reread the last post, it seems someone else beat me to the punch, depending on if you want the code to run at exactly at 3 seconds, or if you want some leeway time will depend on if you want the while loop to >= 3 or > 2, I like my way better, but then again, I was the one who suggested "my" way lol

Last edited by Trooper119; 04/19/07 21:59.

A clever person solves a problem.
A wise person avoids it.
--Einstein

Currently Codeing: Free Lite-C