Array out of bounds?
#1

Alright, so basically, in my enum, I have this:

pawn Код:
CarModel[3],
    CarID[3],
    Float: CarPos1[3],
    Float: CarPos2[3],
    Float: CarPos3[3],
    Float: CarAngle[3],
Here is my variable:

pawn Код:
new pStats[MAX_PLAYERS][PlayerEnum];
I then tried to do something like this:

pawn Код:
pStats[playerid][CarAngle][1]
It then gave me the error: array index out of bounds (variable "pStats").

Is it possible to do this? Or am I doing something wrong?
Reply


Messages In This Thread
Array out of bounds? - by Nuke547 - 15.04.2012, 00:39
Re: Array out of bounds? - by Kitten - 15.04.2012, 00:42
Re: Array out of bounds? - by Nuke547 - 15.04.2012, 00:50
Re: Array out of bounds? - by Nuke547 - 15.04.2012, 01:05
Re: Array out of bounds? - by ScottCFR - 15.04.2012, 01:34
Re: Array out of bounds? - by Nuke547 - 15.04.2012, 01:43
Re: Array out of bounds? - by Nuke547 - 15.04.2012, 04:41
Re: Array out of bounds? - by Rachael - 15.04.2012, 04:54
Re: Array out of bounds? - by Nuke547 - 15.04.2012, 05:02
Re: Array out of bounds? - by Daniel-92 - 15.04.2012, 05:08

Forum Jump:


Users browsing this thread: 1 Guest(s)