Types and 'the penny dropping'

BlitzMax Forums/BlitzMax Beginners Area/Types and 'the penny dropping'

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.

I'm getting a listaddlist error it dont know what listaddlist is.

'

Strict

Global GFX_Width		:	Int		=	800
Global GFX_Height		:	Int		=	600
Global GFX_Depth		:	Int		=	16

'Graphics GFX_Width,GFX_Height,GFX_Depth




Global SpaceObjectList:Tlist = CreateList()

Type SpaceObject
	Field pos_x		:	Int
	Field pos_y		:	Int
	Field Velocity	        :	Int
	Field name 		:	int
	
	
	Method New ()
		listaddlist SpaceObjectList,Self
	End Method
	
	Function Display_New()
		Print "A New Space Object was Created."
		cls
	End function
	
End Type

Type Planet Extends SpaceObject
	Field Image:Timage
End Type

Type Moon	Extends SpaceObject
	Field Image:Timage
End Type

Type Star	Extends SpaceObject
	Field Image:Timage
End Type


While Not KeyHit(KEY_ESCAPE)
	Cls
	
	
	
	FlushMem;Flip
wend



the error I get is something like unkown listaddlist

What am I doing wrong here..