09.09.2012, 18:02
This is called Multidimensional Array, it is something like, an array inside another array.
Above you can see a two-dimensional array. In a two-dimensional array, it is convenient to think of the first subscript as being the row, and the 2nd subscript as being the column. Example:
It is like you have 15 different arrays.
Example of use:
Hope i could clarify a bit.
pawn Code:
new Array[3][5];
Code:
[0][0] [0][1] [0][2] [0][3] [0][4] [1][0] [1][1] [1][2] [1][3] [1][4] [2][0] [2][1] [2][2] [2][3] [2][4]
Example of use:
pawn Code:
new Array[3][5];
Array[0][0] = 1;
Array[1][0] = 3;
Array[2][4] = 9;
Array[1][2] = 3;
if(Array[0][0] == Array[1][0])//This returns false!
{
//...Something
}
if(Array[1][0] == Array[1][2])//But this returns true!
{
//...Something
}

