26.11.2009, 15:31
I thing you don't know for what we use sizeof. Sizeof "return" arry size. For example if we have
sizeof "return" 10, 15, 2. Now i don't know how to say that in english, but i can show you that what i want say.
You have never used sizeof() - 1 becouse your result could be wrong.
Sorry for my language but i still working
//Edit
random returns only numbers in range 0 - (max - 1)
pawn Code:
new
arry[10],
arry2[15],
arry3[2];
pawn Code:
enum 10
{
0,
1,
2,
3,
4,
5,
6,
7,
8,
9
}
enum 15
{
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14
}
enum 2
{
0,
1
}
Sorry for my language but i still working
//Edit
random returns only numbers in range 0 - (max - 1)