13.04.2009, 00:15
Hi.
I have a 20000 line script. It uses MySQL.
Every now and then, the server crashes. Sometimes when players are online, sometimes not. Sometimes frequently, sometimes not. The script is based around the time of day. For example, certain things happen at certain times of the day. I tried logging the game time every two minutes, to see if it was a certain time of day that the game was crashing, and it wasn't.
This problem has been in the script for months, and I really don't know what could be causing it, or when the bug was accidentally implemented.
Is there something I can use to trap errors to fix this problem?
Thanks
I have a 20000 line script. It uses MySQL.
Every now and then, the server crashes. Sometimes when players are online, sometimes not. Sometimes frequently, sometimes not. The script is based around the time of day. For example, certain things happen at certain times of the day. I tried logging the game time every two minutes, to see if it was a certain time of day that the game was crashing, and it wasn't.
This problem has been in the script for months, and I really don't know what could be causing it, or when the bug was accidentally implemented.
Is there something I can use to trap errors to fix this problem?
Thanks