03.04.2016, 09:00
Arrays can only be declared with constant values
But why don't you use 2d arrays for PosX, PosY, ... instead of PosX, PosX1, PosX2?
With 2d arrays you could do
But why don't you use 2d arrays for PosX, PosY, ... instead of PosX, PosX1, PosX2?
With 2d arrays you could do
PHP код:
GetRandomPos(playerid, Float: X, Float: Y, Float: Z, Float: A) {
new
rand = random(sizeof PosX)
;
X = PosX[rand][playerid];
Y = PosY[rand][playerid];
Z = PosZ[rand][playerid];
A = Angle[rand][playerid];
}