all,
this is weird: look below
The above sample code works FINE if I *exclude* the "if" and "end if" .. but as soon as I add the "if" to check if the file exists (which is does!) the code exits with runtimeerror!
WEIRD!!!
Suggestions?
this is weird: look below
Local infinite% = 1 Local maxvolume# = 1 If vh_fadeintro_sfx = LoadSound ("audio/fade-intro.wav") = True Then SoundVolume (vh_fadeintro_sfx,maxvolume) PlaySound (vh_fadeintro_sfx,infinite) Else RuntimeError "error" End If While Not KeyHit(1) Wend FreeSound (vh_fadeintro_sfx) End
The above sample code works FINE if I *exclude* the "if" and "end if" .. but as soon as I add the "if" to check if the file exists (which is does!) the code exits with runtimeerror!
WEIRD!!!
Suggestions?