sure this is something to do with me not learning the basics properly. ive taken out all parts of code relevant:
why is it that...
dim model_paths$(1)
model_paths$(1) = "models\patrolboat_v1.1.x"
dim units#(max_units,15)
unit_class as integer : unit_class = 2
pboat as integer : pboat = 1
units#(1,unit_class) = pboat
load object model_paths$(units#(1,unit_class)),1
...will return garbage as the string whereas...
dim model_paths$(1)
model_paths$(1) = "models\patrolboat_v1.1.x"
dim units#(max_units,15)
unit_class as integer : unit_class = 2
pboat as integer : pboat = 1
units#(1,unit_class) = pboat
path = units#(1,unit_class)
load object model_paths$(path),1
....will work fine?
maybe i cant lookup an array based on the value of another one?
gsd