Posts: 248
Threads: 66
Joined: Dec 2010
Reputation:
0
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?
Posts: 673
Threads: 45
Joined: May 2010
Reputation:
0
did you have while in your mysql system ?
Posts: 248
Threads: 66
Joined: Dec 2010
Reputation:
0
Nope. And OnPlayerSpawn and OnPlayerDeath don't contain any code of mysql.
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
Look for infinite loops (Loops that never end).
Posts: 248
Threads: 66
Joined: Dec 2010
Reputation:
0
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?
Posts: 248
Threads: 66
Joined: Dec 2010
Reputation:
0
Any more help please? Always when I shoot someone with a gun the server restarts.
Posts: 248
Threads: 66
Joined: Dec 2010
Reputation:
0
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?