Can anyone solve this? BLITZ says the last endif doesnt have a match, but no matter how many times i look at this, it looks fine to me. Can anyone help?
Function interpret_click_command(CMD$)
; Delay 1000
If mouse_timeout<5 Then
;generic instructions
If Left$(CMD$,4)="menu" Then ; ITS A MENU CHANGE!
If CMD$="menu EDIT_MAIN" And Menu$="MAIN_MENU" And EDITING_MODE_AVAILABLE=0
Else
menu$=Right$(CMD$,Len(CMD)-5)
mouse_timeout=500
init_menu()
EndIf
EndIf
If Left$(CMD$,6)="SUBSEX" Then
menu_subsection$=Right$(CMD$,Len(CMD$)-7)
mouse_timeout=500
EndIf
;Specific instructions
If CMD$="program exit" Then RuntimeError "You have exited the program"
If CMD$="SETUP_RESTORE_RFG_FILES" Then
If RFG_PATH<>"" the
If FileType(RFG_path$+"build\pc\cache\BAKmisc.vpp_pc")=1
DeleteFile RFG_path$+"build\pc\cache\misc.vpp_pc"
CopyFile RFG_path$+"build\pc\cache\BAKmisc.vpp_pc",RFG_path$+"build\pc\cache\misc.vpp_pc
Else
no_bakmisc=1
EndIf
If FileType(RFG_path$+"build\pc\cache\BAKtables.vpp_pc")=1
DeleteFile RFG_path$+"build\pc\cache\tables.vpp_pc"
CopyFile RFG_path$+"build\pc\cache\BAKtables.vpp_pc",RFG_path$+"build\pc\cache\tables.vpp_pc
Else
no_baktables=1
EndIf
EndIf
EndIf
EndIf
End Function
|