Thread: How to code?
View Single Post
  #443 (permalink)  
Old 10-24-2007, 04:02 AM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 725
wolfe is on a distinguished road
Quote:
Originally Posted by dharsant View Post
Got it, thanks for the help!!!
Glad you figured it out.

I was just throwing some ideas, I wasn't sure if they would work or not.

I was thinking something like this so sound only played once:

bool Play_Sound;


if ((latestlatestmain >= 0) && (latestmain < 0))
{
Play_Sound=true;
}

if (Play_Sound==true)
{
PlaySound("alert2.wav");
Play_sound=false;
}

Maybe?
Reply With Quote