Little problem about arrays.
#4

I try to understand what you're explaining, I just can't really imagine, can you please illustrate ?
Is the problem related to this ?

pawn Код:
new FactionRank[11][7][32];
I'm reading some tutorial about arrays, this a three dimensional one isn't it ? What can you tell me about it ?
Thanks for helping me.



EDIT :

pawn Код:
new FactionRank[11][7][32];
It must be changed to
pawn Код:
new FactionRank[11][9][32];
then ?


EDIT 2 :
Well the situation changed.

Now my errors are :
Quote:

C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9414) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9415) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9416) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9417) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9419) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9420) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9421) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9422) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9423) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9424) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9425) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9426) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(942 : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9429) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9430) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9431) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9432) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9433) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9434) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(9435) : error 032: array index out of bounds (variable "arrCoords")
C:\Users\Geo\Desktop\U-RP [ENG - 0.3x]\gamemodes\U-RP.pwn(29271) : warning 206: redundant test: constant expression is non-zero


I'll look for more informations about this.


EDIT 3 : I solved the problem by changing
pawn Код:
new arrCoords[60][512];
to
pawn Код:
new arrCoords[79][512];



Thanks a lot !
Reply


Messages In This Thread
[Solved] Little problem about arrays. - by Kethrios - 24.06.2013, 15:51
Re : Little problem about arrays. - by Kethrios - 24.06.2013, 19:55
Re: Little problem about arrays. - by Vince - 24.06.2013, 19:58
Re : Little problem about arrays. - by Kethrios - 24.06.2013, 20:10

Forum Jump:


Users browsing this thread: 2 Guest(s)