I keep getting this error, not sure why. I am new to Types but I am trying to use this function to enter a name but I don't know how to define it before I send it down to the function to define it. I thought I did define that Player1 was a type because it works with 3 other of my other function.
This is my Types
Type Players
PlayerName$
PlayerNum
PlayerRace$
PlayerLvl
Planet as Planets[200]
Endtype
Type Planets
Size
EcoLvl
MineralLvl
PlayerOwner
Que as Integer[4]
EndType
This is the first thing my Program reads:
Player1 as Players
So I figure The Variable Player1 is defined as a type
this is the call for a function doName(Player1.PlayerName$)
DoName(Player1.PlayerName$)
And all I keep getting is the above error error.