SA-MP Forums Archive
[HELP] Problem with (array index out of bounds) - 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: [HELP] Problem with (array index out of bounds) (/showthread.php?tid=547155)



[HELP] Problem with (array index out of bounds) - GBLTeam - 20.11.2014

Problem with adding an new faction in the past i have figured out that but now im getting some problems

pawn Код:
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5664) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5665) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5666) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5667) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5668) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5669) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5670) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5671) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5672) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5673) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5813) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5814) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5815) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5816) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5817) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5818) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5819) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5820) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(5821) : error 032: array index out of bounds (variable "FacInfo")
D:\SA-MP\MOD [2014[\Mod [stara verzija]\gamemodes\NRMP.pwn(17524) : error 032: array index out of bounds (variable "FacInfo")
Edit: FIXED thanks to PowerPC603


Re: [HELP] Problem with (array index out of bounds) - PowerPC603 - 20.11.2014

My guess is that your MAX_FACTIONS define is set to 11, which gives you indices ranging from 0 to 10, and you're accessing index 11 in your new code.


Re: [HELP] Problem with (array index out of bounds) - GBLTeam - 20.11.2014

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
My guess is that your MAX_FACTIONS define is set to 11, which gives you indices ranging from 0 to 10, and you're accessing index 11 in your new code.
Ah shit i forgot that MAX_FACTIONS
Thanks for help!