SA-MP Forums Archive
Error crashdetect - 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: Error crashdetect (/showthread.php?tid=398356)



Error crashdetect - toi - 09.12.2012

the crashdetect detects these errors to 'start the gamemode:
Код:
[09:24:08]: --- Crashdetect 3.6.9.4 loaded
[09:24:08]: Script[gamemodes\newgm.amx]: During execution of FC_OnGameModeInit():
[09:24:08]: Script[gamemodes\newgm.amx]: Run time error 4: "Array index out of bounds"
[09:24:08]: Additional information:
[09:24:08]:   Array max index is 41 but accessing an element at 42
[09:24:08]: Call stack (most recent call first):
[09:24:08]:   0x????????()
seems an error of streamers, for I have updated the gamemode and all filterscript all 'latest version and recompiled

possible solutions??


Re: Error crashdetect - [HK]Ryder[AN] - 09.12.2012

There is some array being called in OngameModeInit which has a size of 41 elements but you are exceeding the limit


Re: Error crashdetect - toi - 09.12.2012

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
There is some array being called in OngameModeInit which has a size of 41 elements but you are exceeding the limit
how do I find it? can you give me some clues?


Re: Error crashdetect - [HK]Ryder[AN] - 09.12.2012

You have to check each and every line..it's not that easy.

this occured with me too..

in my script i defined MAX_VEHICLES to 75 and i was accidentaly adding 117 vehicles in gamemodeinit..

it caused this prob