Compiles fine... are you sure it is line 33?
What exactly is written on line 33?
Just for the measure change your paths to "
.\something\something.ext"
As below
function generatelevel()
load image ".\terrain\scorched.png", 10
make matrix 1, 320, 320, 10, 10
prepare matrix texture 1, 10, 1, 1
load object ".\weather\sky01\sky01.x", 3
set object collision off 3
position object 3, 160, 0, 160
scale object 3, 5000, 5000, 5000
endfunction
EDIT
A good practice is to use camel casing in function names, but not a necessity
GenerateLevel()
Like so ^
EDIT
Also, Welcome to the world of DBPro and the TGC Forum