Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / why does this happen?

Author
Message
bob arinski
18
Years of Service
User Offline
Joined: 6th Oct 2005
Location: Over there. Do you see it?
Posted: 10th Nov 2005 16:27
whenever my codes have anything to do with loading a file there is an error that says, sound does not exist or image cannot be loaded, or something else like that. Why does this happen and how can i fix it?

riter in traneiing?
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 10th Nov 2005 17:24
It happens when the file doesn't exist

Maybe you typed the name wrong, or got the wrong path. You can use FILE EXIST() to check if the file is valid...

myFile = FILE EXIST("music.wav")
if MyFile = 1 then load music "music.wav", 1


Krimzon DestinE
19
Years of Service
User Offline
Joined: 18th Sep 2005
Location:
Posted: 11th Nov 2005 03:46
or you don't have the file in the same folder that your source is located

Login to post a reply

Server time is: 2024-09-24 07:22:53
Your offset time is: 2024-09-24 07:22:53