From: Andre` N. C. <ca...@op...> - 2001-05-23 03:59:21
A friend of mine said this would always be false... Is her right? and if so how can I fix it...
bool PlayingSound = false;
if (PlayingSound==false){
PlayGameSound();
PlayingSound=true;
}else;
--- Andre` Niel Cameron <ca...@op...> escribió: > A friend of
mine said this would always be false... Is her right?
Yes she's right because you initiate the parameter as false and then
you check whether it is false or not. Obviously it's always false
> and if so how can I fix it...
2 options
A) bool PlayingSound = Call_a_function_to_get_true_or_false;
B) place bool PlayingSound = false; somewhere else in the code
>
> if (PlayingSound==false){
> PlayGameSound();
> PlayingSound=true;
> }else;
>
>
hth
Chemanuel
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es