SA-MP Forums Archive
Weird server freezes. - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Weird server freezes. (/showthread.php?tid=192581)



Weird server freezes. - Haydz - 23.11.2010

Lately my server has been freezing, is there some sort of way i could find out whats causing it, or some common reasons why a server would freeze like this.


Re: Weird server freezes. - [L3th4l] - 23.11.2010

It could be many reason:
1. Outdated plugins?
2. Unused or badly coded 'OnPlayerUpdate' code?
3. Timers?
4. Slow code - eg: strtok
5. Saving player's info every minute? ( Yes i see this happened before on this forum )


Re: Weird server freezes. - Scenario - 23.11.2010

You sure it's not just some server lag?


Re: Weird server freezes. - cessil - 23.11.2010

check loops with a lot of functions in them, also make sure you didn't put much stuff under onplayerupdate and check any sql queries.


Re: Weird server freezes. - The_Gangstas - 23.11.2010

show your onplayerupdate public callback


Re: Weird server freezes. - Haydz - 23.11.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
It could be many reason:
1. Outdated plugins?
2. Unused or badly coded 'OnPlayerUpdate' code?
3. Timers?
4. Slow code - eg: strtok
5. Saving player's info every minute? ( Yes i see this happened before on this forum )
1, maybe, i will check up on them.
2, don't have an OnPlayerUpdate code.
3, yeh i have timers, i'll check them out also.
4, i use ZCMD so that shouldn't be a problem should it?
5, maybe, atm i just use Ladmin https://sampforum.blast.hk/showthread.php?tid=19819 as i havn't got around to making my own.

@realcop, na don't think so, you try join and it shows the "Connected to server. then the screen stays like that forever untill i restart the server.

@thegangster, don't have one sorry.


Re: Weird server freezes. - Rac3r - 23.11.2010

A never ending loop, I've done it before :P

Quote:

This forum requires that you wait 120 seconds between posts. Please try again in 12 seconds.

FTW, less SA-MP spam.