Compile Error..

BlitzMax Forums/BlitzMax Beginners Area/Compile Error..

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

SuperStrict

Graphics(640,480,0)

Tsatellite.Create()'creates firs object
Tsatellite.create()'creates second object
While Not KeyHit(KEY_ESCAPE)	

	Local s:TSatellite
	For s=EachIn Tsatellite.SatelliteList			
		s.Draw()				
	Next

	Flip;Cls
	
Wend

Type TSatellite	
	
	Global SatelliteList:TList=New TList
	
	Method Draw()
	
	End Method	
	
	Function Create:TSatellite()
	
		Local s:TSatellite=New TSatellite	
			
			SatelliteList.AddLast(s)
	
		Return s
	
	End Function	

End Type