Array index out of bounds
#6

Quote:
Originally Posted by maramizo
Посмотреть сообщение
The way to fix it is to change BT[MAX_PLAYERS] to BT[MAX_PLAYERS-1] on the save part.
Thank you all for attempting to solve it.
That will stop the error but your code will not do what you want it to do. Whatever BT is it will be the same for every player because you only ever use MAX_PLAYERS-1 as an index and not the playerid. So you might aswel use a normal var (none array) since you only ever use one index.
Reply


Messages In This Thread
Array index out of bounds - by maramizo - 27.07.2012, 06:55
Re: Array index out of bounds - by MP2 - 27.07.2012, 07:01
Re: Array index out of bounds - by Goobiiify - 27.07.2012, 07:01
Re: Array index out of bounds - by grand.Theft.Otto - 27.07.2012, 07:03
Re: Array index out of bounds - by maramizo - 27.07.2012, 07:15
Re: Array index out of bounds - by iggy1 - 27.07.2012, 07:33

Forum Jump:


Users browsing this thread: 2 Guest(s)