SA-MP Forums Archive
Two errors. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Two errors. (/showthread.php?tid=133856)



Two errors. - iLcke - 14.03.2010

line 18131:
Код:
AntiHack(playerid, -SBizzInfo[13][sbEntcost]);
line 18132:
Код:
SBizzInfo[13][sbTakings] = SBizzInfo[13][sbTakings]+SBizzInfo[13][sbEntcost];
pawn errors says this:
Код:
C:\Users\Andreew\Documents\My Received Files\v1.2a.pwn(18131) : error 032: array index out of bounds (variable "SBizzInfo")
C:\Users\Andreew\Documents\My Received Files\v1.2a.pwn(18132) : error 032: array index out of bounds (variable "SBizzInfo")
any ideas.



Re: Two errors. - [HiC]TheKiller - 14.03.2010

The errors are pretty self explanatory.

Show the line where it says
pawn Код:
new SBizzInfo[....][....]
Change the first [....] to a larger value.