06.03.2015, 14:17
one 3d array should suffice.
pawn Код:
new Float:testarray[2][2][3] =
{
{
{0.0, 0.0, 0.0},
{1.0, 1.0, 1.0}
},{
{0.0, 0.0, 0.0},
{1.0, 1.0, 1.0}
}
};
getRandomArray(&Float:x, &Float:y, &Float:z)
{
new
first_index = random(sizeof testarray),
second_index = random(sizeof testarray[]),
x = testarray[first_index][second_index][0],
y = testarray[first_index][second_index][1],
z = testarray[first_index][second_index][2]
;
}