Try setting the current bitmap to zero. Sometime DB forgets that the
current screen should be zero when performing create or copy bitmap
operations with other bitmaps before returning attention to the display.
Don't forget that you need to turn the video sync on in the beginning
of your program. Your program will just hang up, which is more likely.
When using video sync and clearing the screen within a loop, you need
to copy the bitmap back to the current display every pass of the loop.
You could also load the picture as an image:
sync on
sync rate 0
set text font "centaur" : set text size 20 : set text to bold
load image "ofadown.jpg",1
t = get number of cd tracks()
do
cls
paste image 1,0,0
if t = 0
Print "You have no cd in your drive."
Print "Please put a cd in your CD-ROM drive and press space or escape to exit."
repeat
until spacekey()=1
t = get number of cd tracks()
else
Print "The amount of tracks on your cd is: ", t
input "Type the number of the track u want to listen to. ",i
if music exist(i)=0 then Load cdmusic i,i
play music i
endif
sync
loop