Freeze & Incoming connection
#1

Hello,

when I start server, after few minits of playing (5 - 30) game freezes for all. No player position updating, no chat updates.. When players try to reconnect server prints into log "Incoming connection" and for player "Connected. Joining the game", but player canґt spawn or write to the chat. Any ideas for fix it?

Thx for Help

//Edit Solution: infinite while loop in register dialog
Reply
#2

What gamemode you are using ?
Reply
#3

My own gamemode. I haven't been changed nothing in OnPlayerConnect.. IDK why it happens.
Reply
#4

Search in your script for this line:
pawn Код:
TogglePlayerControllable
Reply
#5

It would be DDOS But if it was it wouldn't even show "Connected"
Reply
#6

You have to check how much ressource the server does take when it freezes. If the CPU load is high, then you might have a loop which keeps continueing.
Reply
#7

Your server has frozen from what it seems to me. Do you use the MySQL plugin?

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Search in your script for this line:
pawn Код:
TogglePlayerControllable
Seriously, stop even posting if you don't know what's going on...
Reply
#8

Try re-downloading the SAMP scripting includes. I had a similar error were OnPlayerConnect was not even called
Reply
#9

Quote:
Originally Posted by AndreT
Посмотреть сообщение
Seriously, stop even posting if you don't know what's going on...
Yea that guy is an idiot, +rep, anyways, if you are using MYSQL then you probally are using inefficient code, if it is not you either have way to many timers or a loop that is not stopped, if you are hosting it on your home pc you may just not have the needed PC specs to host a server from home, buying an actual host will fix it if that is the issue.
Reply
#10

Quote:
Originally Posted by T0pAz
Посмотреть сообщение
It looks like there is return 0; somewhere on OnPlayerUpdate.
In OnPlayerUpdate i save last player activity tick into variable, nothing else. // Added since year..

Quote:
Originally Posted by Georgi166
Посмотреть сообщение
It would be DDOS But if it was it wouldn't even show "Connected"
Connecting IPs match with IPs player, which play on my server..

Server freezes in random time, but always minute after some player connect.
Reply


Forum Jump:


Users browsing this thread: 6 Guest(s)