Neither one of those is valid, the error statement is just a bit confused.
An array can't be declared as type invcont or type name unless those are valid UDTs. How did you declare the original type?
It can be declared as string, as integer, etc.
Try this:
global dim inv(itemnum) as invcont
wait key
and
global dim npcs(npctitle) as name
wait key
Neither one will compile.
But,
this will compile:
type name
frad as integer
endtype
type invcont
bevert as string
endtype
dim npcs(npctitle) as name
dim inv(itemnum) as invcont
wait key
And, by the way, arrays are always global, and don't need the "global" in the declaration.