GetChar related?

BlitzMax Forums/BlitzMax Beginners Area/GetChar related?

Yep, Just tested it again. With the second bit of code I posted, if I remove the "else" and any code in it whether it be "End" or "Exit" or some other code, the file loading works perfectly.

This is what the code looks like when it works.

			If MapIdSelected = 1
				'TTile2.MapClearMap
				Print "2"
				For Local f:TFile = EachIn TFile.FList
					Print "3"
					If Line$ = f.id
						Print "4"
						File = f.MapName
						f2 = ReadFile("usermaps/" + File) 
						 	
							For Local y:Int = 0 Until FMHeight
								For Local x:Int = 0 Until FMWIDTH
									FactoryMap[x, y].id = Readint(f2) 
								Next
							Next
						Print "Yay - Loaded"
					EndIf
				Next