SA-MP Forums Archive
Server Freezes - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server Freezes (/showthread.php?tid=300007)



Server Freezes - CONTROLA - 28.11.2011

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?


Re: Server Freezes - Tigerkiller - 28.11.2011

did you have while in your mysql system ?


Re: Server Freezes - CONTROLA - 28.11.2011

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


Re: Server Freezes - Ash. - 28.11.2011

Look for infinite loops (Loops that never end).


Re: Server Freezes - Nodroz - 28.11.2011

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.


Re: Server Freezes - CONTROLA - 29.11.2011

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?


Re: Server Freezes - Nodroz - 29.11.2011

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.


Re: Server Freezes - CONTROLA - 01.12.2011

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


Re: Server Freezes - MP2 - 01.12.2011

https://sampwiki.blast.hk/wiki/Debugging


Re: Server Freezes - CONTROLA - 01.12.2011

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?