Max. Faction Ranks
#1

Hi, Im new to PAWN Scripting. And got a nice script. But i added 10 LSPD Ranks (From 6 to 16)
Only thing is (I Think) somewhere in the script is the max Factionranks defined but i can't find it.
This is the Pawn Error:
Код:
error 032: array index out of bounds (variable "FactionRank")
Also found this
Код:
new FactionRank[11][7][32];
But i wasn't sure if had anything to do with it.

So if you could tell me where to change it/Find it
That would be great.

~Thanks in advance.
Reply
#2

If its Not used, you can Remove it and can you please show us Line on which you getting error?
Reply
#3

Sure,

Код:
	        strmid(FactionRank[1][7], arrCoords[46], 0, strlen(arrCoords[46]), 255);
		strmid(FactionRank[1][8], arrCoords[47], 0, strlen(arrCoords[47]), 255);
		strmid(FactionRank[1][9], arrCoords[48], 0, strlen(arrCoords[48]), 255);
		strmid(FactionRank[1][10], arrCoords[49], 0, strlen(arrCoords[49]), 255);
		strmid(FactionRank[1][11], arrCoords[50], 0, strlen(arrCoords[50]), 255);
		strmid(FactionRank[1][12], arrCoords[51], 0, strlen(arrCoords[51]), 255);
		strmid(FactionRank[1][13], arrCoords[52], 0, strlen(arrCoords[52]), 255);
		strmid(FactionRank[1][14], arrCoords[53], 0, strlen(arrCoords[53]), 255);
		strmid(FactionRank[1][15], arrCoords[54], 0, strlen(arrCoords[54]), 255);
		strmid(FactionRank[1][16], arrCoords[55], 0, strlen(arrCoords[55]), 255);
On all these lines im getting the same error.
Reply
#4

Change;

pawn Код:
new FactionRank[11][7][32];
To;

pawn Код:
new FactionRank[11][16][32];
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)