SA-MP Forums Archive
Big Chance To Crash My Server? - 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: Big Chance To Crash My Server? (/showthread.php?tid=395304)



Big Chance To Crash My Server? - Patrick - 25.11.2012

hello guyz im just askin if this debug give by crashdetect is it big chance to crash my server if i add more DynamicCP on my server?

pawn Код:
[20:35:20] [debug] Run time error 4: "Array index out of bounds"
[20:35:20] [debug]  Accessing element at index 999 past array upper bound 45
[20:35:20] [debug] AMX backtrace:
[20:35:20] [debug] #0 000a3158 in ?? () from IT.amx
[20:35:20] [debug] #1 00082c74 in public Streamer_OnPlayerEnterCP () from IT.amx
[20:35:20] [debug] #2 native CallLocalFunction () [00472c00] from samp-server.exe
[20:35:20] [debug] #3 00003d98 in public OnPlayerEnterCheckpoint () from IT.amx



Re: Big Chance To Crash My Server? - bathushan - 25.11.2012

I don't think so


Re: Big Chance To Crash My Server? - Patrick - 25.11.2012

Quote:
Originally Posted by bathushan
Посмотреть сообщение
I don't think so
how can u say? can u explain a little bit more please ?


Re: Big Chance To Crash My Server? - SwisherSweet - 25.11.2012

you missed a bracket at IT.amx


Re: Big Chance To Crash My Server? - Patrick - 25.11.2012

if i missed 1 bracket it will give me error or warning right?


Re: Big Chance To Crash My Server? - SuperViper - 25.11.2012

Be sure to define MAX_PLAYERS and MAX_VEHICLES (if you use a custom value) right after a_samp and before any other includes.


Re: Big Chance To Crash My Server? - cessil - 26.11.2012

you can see in the log

[20:35:20] [debug] Accessing element at index 999 past array upper bound 45

meaning you're accessing an array index at 999 when the arrays max is 45