run time error 4
#4

That's actually pretty basic. Read more about arrays: https://sampwiki.blast.hk/wiki/Scripting_Basics#Arrays

So if you do something like this (an example):
pawn Код:
new BizzInfo[100][e_BizzInfo];
new Text3D:bizer[78];
it will loop as the size of BizzInfo which in your case is 100 but the size of bizer is 78 so the last valid index is 77 and it exceeds; thus causing the run time error. Use the same size or you can even do:
pawn Код:
new BizzInfo[100][e_BizzInfo];
new Text3D:bizer[sizeof (BizzInfo)];
Reply


Messages In This Thread
run time error 4 - by PinAxXx - 14.05.2015, 18:25
Re: run time error 4 - by Konstantinos - 14.05.2015, 19:00
Re: run time error 4 - by PinAxXx - 14.05.2015, 19:09
Re: run time error 4 - by Konstantinos - 14.05.2015, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)