Hello, server crash - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Hello, server crash (
/showthread.php?tid=304557)
Hello, server crash -
4WD - 18.12.2011
Hello, I am using SA:MP 0.3d and my server is on MySQL, when I start the server it runs normaly until I got around 90 players, then he crash...this is what I get in the crash log.
Код:
[22:26:18]: public SpeedVehicle()
[22:26:19]: Script[gamemodes/rggm.amx]: During execution of SpeedVehicle():
[22:26:19]: Script[gamemodes/rggm.amx]: Run time error 4: "Array index out of bounds"
[22:26:19]: Additional information:
[22:26:19]: Array max index is 499 but accessing an element at 500
[22:26:19]: Call stack (most recent call first):
[22:26:19]: public SpeedVehicle()
[22:26:19]: Script[gamemodes/rggm.amx]: During execution of OnPlayerCommandText():
[22:26:19]: Script[gamemodes/rggm.amx]: Run time error 5: "Invalid memory access"
[22:26:19]: Additional information:
[22:26:19]: No details available
[22:26:19]: Call stack (most recent call first):
[22:26:19]: The server has crashed due to an unknown error
Can someone help me, please?
Re: Hello, server crash -
Baily - 18.12.2011
4WD , tu ai o problema la mysql , din cate am vazut eu pe rGaming ...
Incearca sa creezi o baza de date noua , nu uita de backup.
Re: Hello, server crash -
Tudor23 - 18.12.2011
This is an English forum, stick it to the English language or do not post. You can't be sure it's a MySQL problem nor a gamemode problem nor a SA:MP problem, the mysql database could fail for a few seconds, or the gamemode may loose the connection the the mysql database for a few seconds. There are tons of things that could happen.
Re: Hello, server crash -
Mauzen - 18.12.2011
As it says in the crashlog there is an array access out of bounds.
Probably you got something like
pawn Код:
new array[MAY_PLAYERS];
array[playerid + 456] = blabla;
Try to spot that in your code, in your SpeedVehicle() function.