Think this is closer to what you want.

Code:
var framesCheck = 0;
var secondsCheck = total_secs;

while(1)
{
if(framesCheck == 10) // after 10 frames have passed
{
  framesCheck = 0;
  beep();
}
if(total_secs >= (secondsCheck+5)) // after 5 seconds have passed
{
  secondsCheck = total_secs;
  beep();
}

framesCheck++;
wait(1);
}



Loco


Professional A8.30
Spoils of War - East Coast Games