Server crashes?
#1

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..
Reply
#2

Removed.
Reply
#3

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
Reply
#4

Removed.
Reply
#5

Take this plugin:
https://sampforum.blast.hk/showthread.php?tid=262796

What is printing in the console (server.log) if the server crashed?
Reply
#6

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.
Reply
#7

Код:
[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
Reply
#8

Probably a bug in LS.amx
Show us the onplayerdeath callback from that fs
Reply
#9

Do you have this
PHP код:
main()
{

above OnGameModeInit?
Reply
#10

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)