Server strange :D -
audriuxxx - 18.03.2013
Hi,
Sometimes, my server stop, i can't chat, all stops

but server work, it's like that server don't get any response, players can't connect, if they out, no change players, if i see Players: 6/10, if somebody out, no change i just want to say no response from server, but server work, why that's happin?
Re: Server strange :D -
Jstylezzz - 18.03.2013
Maybe you have a function that consumes so much resources, that it stops all the other processes. Make sure your server is up to date too, and check where the problem exactly starts. If you know where it starts, you'll be able to solve it.
With the crashdetect plugin, you might be able to find out when the server 'collapses'.
[Tutorial] - Updating your sa-mp server and scripts
Crashdetect
Re: Server strange :D -
Rufio - 18.03.2013
Upload crashdetect to your server, put crashdetect.dll to your plugins folder, open server.cfg and add this line
Or if there is other plugins just add this as another one. Check server_log and see what is wrong, you can copy it to here so we can help. Good luck !
Re: Server strange :D -
AndreT - 18.03.2013
Look at
this. I think you're in the same situation (server "lockup")
Re: Server strange :D -
audriuxxx - 18.03.2013
This can be, when i do cikle, from cars in onplayerupdate?
new autos[ MAX_PLAYERS ];
Код:
public OnPlayerUpdate(playerid)
{
if( IsPlayerConnected( playerid ) )
{
if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )
{
for(autos[ playerid ] = 1; autos[ playerid ] < MAX_VEHICLES; autos[ playerid ] ++ )
{
}
}
}
Re: Server strange :D -
Jstylezzz - 18.03.2013
When does the server stops responding? Is it as soon as you enter the server, or after you did a command?
To be sure, comment the code above (/* */), and check if the problem is still there.
Re: Server strange :D -
Scenario - 18.03.2013
You're running a loop which has to go through 500 times, more than 1000 times per second, and you're asking why the server is hanging? Hm..
The problem is the code you've posted above. Here's a tip for the future: don't use OnPlayerUpdate UNLESS you know EXACTLY what you're doing.
Re: Server strange :D -
audriuxxx - 18.03.2013
But server don't crashes ant the moment, just later.
Re: Server strange :D -
Jstylezzz - 18.03.2013
Can you link the problem to anything that you do? Is it a command, or maybe a function that get's called?
Re: Server strange :D -
audriuxxx - 18.03.2013
Can it be ddos?