"Array out of bounds"
#3

pTool is 4 and you have declared PlayerInfo[MAX_PLAYERS][4], so there is only [0],[1],[2]and [3] (you reserved memory for 4 fields in that array)
extend your array to 5, so PlayerInfo[playerid][ptool] is valid

this is only a solution when ptool is 4 and is supposed to be 4
Reply


Messages In This Thread
"Array out of bounds" - by Dan. - 27.04.2012, 17:20
Re: "Array out of bounds" - by Dan. - 27.04.2012, 17:26
Re: "Array out of bounds" - by Falco-Ger - 27.04.2012, 17:45
Re: "Array out of bounds" - by Dan. - 27.04.2012, 18:14
Re: "Array out of bounds" - by ViniBorn - 27.04.2012, 18:17
Re: "Array out of bounds" - by Falco-Ger - 27.04.2012, 18:18
Re: "Array out of bounds" - by Dan. - 27.04.2012, 18:19
Re: "Array out of bounds" - by Falco-Ger - 27.04.2012, 18:20
Re: "Array out of bounds" - by ViniBorn - 27.04.2012, 18:30
Re: "Array out of bounds" - by iggy1 - 27.04.2012, 18:40

Forum Jump:


Users browsing this thread: 1 Guest(s)