08.01.2017, 13:05
Because you're getting your arrays out of bounds. It should be : sizeof(TDConnect[]) instead. Consider this example:
I suppose MAX_PLAYERS as the size of first dimension and it's probably greater than the second of your 2D array. Which is why you looped till MAX_PLAYERS and used higher values as your array index that got you out of bounds.
EDIT : I'm late. It takes me a life time to type when I'm using my mobile.
pawn Код:
new myarray[10];
new my2darray[15][20];
new my3darray[5][6][7];
sizeof(myarray); //returns 10.
sizeof(my2darray); //returns the first dimension limit : 15
sizeof(my2darray[]); //returns 20.
//similarly...
sizeof(my3darray[][]); //returns 7.
EDIT : I'm late. It takes me a life time to type when I'm using my mobile.