no, i'm using a function(a separate DB file)for only a file selector, u know like choosing the level u want from a window. the window has two buttons, OPEN and CANCEL.
the main DB file #includes this function. the OPEN button was easy, it's just like "if mission_select1=1 then goto mission1", this was written on the main DB file. the problem is in the CANCEL button. when i press cancel it should get back to the main menu. i tried alot of things but it just wont work. i'll give u the code of the function, but its a lil messy! it's on the "source".
and here's the main program for the file selector:
repeat
filter1$=".map" : filter2$=""
_fichierchoisi=_File_Selector_v1(_mappath$,filter1$,filter2$)
if _fichierchoisi=1
_dossierfinal$="C:\WINDOWS\Desktop\Levels\Maps"
`fileselector$(8)
_fichierfinal$=fileselector$(9)
if _fichierfinal$="SWAT.map" then goto mission1
if _fichierfinal$="level2.map" then goto mission2
if menu=1 then goto main_menu
endif
until _fichierchoisi=1
thankx for trying to help.
‘Those who ignore the lessons of the past are doomed to repeat them’ (Napoleon)