27.11.2014, 19:34
You can create the array using [], pawn will automatically count the amount of indices upon compiling.
But accessing the values afterwards, you always need to supply it with both indices:
BusCP[7][0] for example.
Or for a random coordinate:
But accessing the values afterwards, you always need to supply it with both indices:
BusCP[7][0] for example.
Or for a random coordinate:
pawn Код:
new RandCoord = random(sizeof(BusCP));
new Float:x = BusCP[RandCoord][0];
new Float:y = BusCP[RandCoord][1];
new Float:z = BusCP[RandCoord][2];