Server Freezes
#1

Hello. I've got a problem - the server freezes and doesn't get back, so I have to restart it in order to make it run again. I observed everytime someone kills me or is close to killing me, the server freezes.

I'm using MySQL and it has been doing like this since I implemented MySQL.

Could someone help me solve this?
Reply
#2

did you have while in your mysql system ?
Reply
#3

Nope. And OnPlayerSpawn and OnPlayerDeath don't contain any code of mysql.
Reply
#4

Look for infinite loops (Loops that never end).
Reply
#5

Quote:
Originally Posted by funky1234
Посмотреть сообщение
Look for infinite loops (Loops that never end).
This indeed could cause the problem. Try to look up your script for any errors and unlogic things.
Reply
#6

Well that would be very hard since it's got ~40.000 lines. However I don't use any while. for(..) could be a cause for infinite loops?
Reply
#7

Quote:
Originally Posted by CONTROLA
Посмотреть сообщение
Well that would be very hard since it's got ~40.000 lines. However I don't use any while. for(..) could be a cause for infinite loops?
Hmm, that's a lot to read through.

It should be something to do with MySQL, I guess.
Reply
#8

Any more help please? Always when I shoot someone with a gun the server restarts.
Reply
#9

https://sampwiki.blast.hk/wiki/Debugging
Reply
#10

Well the script restarts at a random time but mostly when I shoot somebody. Which callbacks are called when somebody is injured or somebody shoots another player?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)