I'm working on some code that would load the player saved options (controls, window size, etc) using an array but have run into a bit of an issue with the file name. The first line of the code below returns an error saying that it could not determine the parameter type of playeroptions (the file name). Is the file name I'm using not formatted correctly, or is something else going on?
IF FILE EXIST (playeroptions)
LOAD ARRAY "playeroptions", arr_PlayerOptions(6)
ELSE
arr_PlayerOptions(1) = 20 `Inventory
arr_PlayerOptions(2) = 47 `Chat
arr_PlayerOptions(3) = 17 `Drop
arr_PlayerOptions(4) = 18 `Jump
arr_PlayerOptions(5) = 31 `Left
arr_PlayerOptions(6) = 33 `Right
SAVE ARRAY "playeroptions", arr_PlayerOptions(6)
ENDIF
Oh and as an aside, I have already DIMed the array.