I'm a little puzzled by a error that I've been getting trying to pass a structure as an argument.
I created the following procedure to read groups of properties about a sprite from a configuration file.
Code: Select all
Procedure GSprite_ReadGroup(Name.s, GroupData.GSprite_ActionData)
PreferenceGroup(Name)
If BoolPrefs("Used")
GroupData\Frames = ValPrefs("Frames")
GroupData\HasDirections = BoolenPrefs("HasDirections")
If BoolPrefs("Tiled")
GroupData\XTile = ValPrefs("XTile")
GroupData\YTile = ValPrefs("YTile")
EndIf
EndIf
EndProcedure
What am I doing wrong?