Server crashes? - 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: Server crashes? (
/showthread.php?tid=584214)
Server crashes? -
(_AcE_) - 03.08.2015
My server crashes like every 10 minutes.. I don't understand why...
pawn Код:
#include <a_samp>
#include <zcmd>
#include <dini>
#include <dudb>
#include <j_fader_v2>
#include <YSI\y_timers>
Those are my includes.... Idk why this happens.. Could it possibly be the j fader inclue or the ysi? Before it was working perfectly fine..
Re: Server crashes? -
Variable™ - 03.08.2015
Removed.
Re: Server crashes? -
(_AcE_) - 03.08.2015
Yes I do. Actually downloaded it a few days ago. Server has been working fine then suddenly it has started to randomly restart/crash the past few days. Maybe it could be the plugins? I've got mysql, Whirlpool, filemanager, sscanf, and streamer
Re: Server crashes? -
Variable™ - 03.08.2015
Removed.
Re: Server crashes? -
MarvinPWN - 03.08.2015
Take this plugin:
https://sampforum.blast.hk/showthread.php?tid=262796
What is printing in the console (server.log) if the server crashed?
Re: Server crashes? -
(_AcE_) - 04.08.2015
When there's no players on the server it won't crash, but when players are playing it will crash soon after.
I will run crashdetect and see what happens.
Re: Server crashes? -
(_AcE_) - 04.08.2015
Код:
[23:14:40] LOADED 9064 texture definitions
[23:14:40] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[23:14:40] Script[gamemodes/LS.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[23:14:40] Number of vehicle models: 26
[23:14:40]
That's what I get.
[23:23:33] [debug] Server crashed while executing LS.amx
[23:23:33] [debug] AMX backtrace:
[23:23:33] [debug] #0 00000014 in public OnPlayerTakeDamage () from LS.amx
[23:23:33] [debug] Native backtrace:
[23:23:33] [debug] #0 735e4502 in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #1 735dd641 in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #2 735e355a in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #3 0046ec0c in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
[23:23:33] [debug] #4 004913a3 in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
[23:23:33] [debug] #5 0048bc96 in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
Re: Server crashes? -
PMH - 04.08.2015
Probably a bug in LS.amx
Show us the onplayerdeath callback from that fs
Re: Server crashes? -
MarvinPWN - 04.08.2015
Do you have this
above OnGameModeInit?
Re: Server crashes? -
Gammix - 04.08.2015
Quote:
Originally Posted by (_AcE_)
Код:
[23:14:40] LOADED 9064 texture definitions
[23:14:40] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[23:14:40] Script[gamemodes/LS.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[23:14:40] Number of vehicle models: 26
[23:14:40]
That's what I get.
[23:23:33] [debug] Server crashed while executing LS.amx
[23:23:33] [debug] AMX backtrace:
[23:23:33] [debug] #0 00000014 in public OnPlayerTakeDamage () from LS.amx
[23:23:33] [debug] Native backtrace:
[23:23:33] [debug] #0 735e4502 in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #1 735dd641 in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #2 735e355a in ?? () from C:\TCAFiles\Users\HunterA\9443\plugins\crashdetect .DLL
[23:23:33] [debug] #3 0046ec0c in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
[23:23:33] [debug] #4 004913a3 in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
[23:23:33] [debug] #5 0048bc96 in ?? () from C:\TCAFiles\Users\HunterA\9443\samp-server.exe
|
The result clearly states the error. Run time errors are caused when you generally pass a higher value into an array than its max.
Check your
OnPlayerTakeDamage and fix the array part. Mainly its caused by incorrect looping (i meant not checking case value before inserting).