But I think it is because the array dimentioning has to be before you refer to it. Unlike arrays the types declarations can be anywhere, I don't know why this is so.
Anyway try moving the dim:
Dim hold.gameitems(18)
Up to before:
Include "load.bb"
Anyway always have your dims in the top of the code.