Initializing a Custom Type Array

BlitzMax Forums/BlitzMax Beginners Area/Initializing a Custom Type Array

Change the function into a method and don't use the [] for the array, it's already defined in the Field

Type TPlayer
	
	Field playerHand:TCard[] 
	
	Method Create()   'instantiates a player
	
		playerHand = New TCard[5] 
	
	End Method 
End Type