warning 204: symbol is assigned a value that is never used
#5

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);
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)