30.07.2010, 11:18
Quote:
Id guess your array with the Coords is multi-dimensional, something like this:
new Float: pickups[][3] Then you can create your pickups using a for-loop and using the counter as index for your array: pawn Код:
|
Another thing, could i enum the array? So instead of 1, 2 and 3 being x, y, z i could actually call them x, y and z.
Like this:
pawn Код:
for(new i = 0; i < sizeof(pickups); i ++) {
CreatePickup(..., pickups[i][x], pickups[i][y], pickups[i][z]);
}
Ash