Weird server freezes.
#1

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

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

You sure it's not just some server lag?
Reply
#4

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

show your onplayerupdate public callback
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)