I have written some code as part of a save subrountineand its this:
rem declare save varibles
cam$="cam"
map$="map"
dat$=".Dat"
Rem main sequence
set text size 20
set text font "Arial"
if path exist("\saves")=0 then make directory "saves"
if path exist("\savedata")=0 then make directory "savedata"
cd "saves"
set cursor 5, 5
dir
Set cursor 400, 40
Print "Enter filename: ";
input f$
File$=F$+map$+dat$
set dir "savedata"
save array File$, ObjectData#(200, 9)
CamFile$=F$+cam$+dat$
save array CamFile$, CameraData#(1,6)
cd "Saves"
Save$(1,1)=F$+Map$+Dat$
Save$(1,2)=F$+Cam$+Dat$
save array F$, Save$(1,2)
wait key
end
the problem is at the line iv put in bold it closes and says runtime error 8003 could not find path and the line in bold is the one it says it cant fidn the path for. i thought it was because i have used the dir command mayb bt i duno cna anyone help me fixed this part of the code plz?
Thanks
Adam