28.08.2015, 13:12
sizeof(randomtree) is 3. Hence, randomtree1 can be 0, 1 or 2. this is the index, not the object model obviously. You need to access the array with the index to get the object model. On another note, you don't need a 2D array for this. Makes everything needlessly complicated.
pawn Код:
new randomtree[] = {697, 704, 731};
// ...
new randomIndex = random(sizeof(randomtree));
CreateDynamicObject(randomtree[randomIndex], x[i], y[i],z[i]+10, 0, 0, 0.00);