Hello, server crash
#1

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

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)