[HELP]: Line doesn't execute
#4

Because you're getting your arrays out of bounds. It should be : sizeof(TDConnect[]) instead. Consider this example:
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.
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.
Reply


Messages In This Thread
[HELP]: Line doesn't execute - by Eoussama - 08.01.2017, 12:53
Re: [HELP]: Line doesn't execute - by Vince - 08.01.2017, 13:01
Re: [HELP]: Line doesn't execute - by SickAttack - 08.01.2017, 13:02
Re: [HELP]: Line doesn't execute - by Lordzy - 08.01.2017, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)