SA-MP Forums Archive
Max. Faction Ranks - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Max. Faction Ranks (/showthread.php?tid=434427)



Max. Faction Ranks - Facerafter - 02.05.2013

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.


Re: Max. Faction Ranks - SimpalK - 02.05.2013

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


Re: Max. Faction Ranks - Facerafter - 02.05.2013

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.


Re: Max. Faction Ranks - Calabresi - 02.05.2013

Change;

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

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