Alright, i tried to make my first program in with DarkBasic, using CodeSurge. And i ran into a little debug problem, and i can't figure out what the heck it means.
error:
types "TEMP0" and "game" are in compatible at line 20
highlighted:
CurrDir$=CurrDir$+"/"+game(gnum)+"/"
rem Pb's Multi-Program Launcher!!!
rem Best used with FPSC Multiplayer maps
global bckgrdfile
global maxgames
global CurrDir$
dim game()
CurrDir$=get dir$()
set display mode 1024, 768, 32
sync on
sync rate 32
LoadInfo()
Display()
Input "Game Number", gamenum$
gnum=val(gamenum$)
CurrDir$=CurrDir$+"/"+game(gnum)+"/"
Set Dir CurrDir$
Execute File game(gamenum),"",""
Function LoadInfo()
Open to read 1, "settings.ini"
read string 1,s$
bckgrdfile=s$
read string 1,s$
maxgames=val(s$)
for i=1 to maxgames
read string 1, s$
game(i)=s$
next i
EndFunction
Function Display()
Load bitmap bckgrdfile,1
Paste Image 1,0,0
for i=1 to maxgames
center text 512, 240+(i*10), str$(i)+". "+game(i)
next i
EndFunction
can anyone tell me what is wrong?
thanks,
pb