20.12.2017, 12:43
Hi. I using so many arrays; new player[MAX_PLAYERS][value]
example: new player[MAX_PLAYERS][5];
In one of the topics I read that, this is a bad solution, and will be better, if we use char array; new player[MAX_PLAYERS][5 char]
But when I use it, then compiler shows the error: array index out of bounds
Then multiplying the value of the array helps;; player[MAX_PLAYERS][5*2 char]
But whether then it will not be the same as: new player[MAX_PLAYERS][10] ?
Which option is better and more optimal?
example: new player[MAX_PLAYERS][5];
In one of the topics I read that, this is a bad solution, and will be better, if we use char array; new player[MAX_PLAYERS][5 char]
But when I use it, then compiler shows the error: array index out of bounds
Then multiplying the value of the array helps;; player[MAX_PLAYERS][5*2 char]
But whether then it will not be the same as: new player[MAX_PLAYERS][10] ?
Which option is better and more optimal?