Help - Debug
#4

Quote:
Originally Posted by Rizard
the server crashes, not realy the players, at first I thought it was my dedi wich was beeing rebooted every 20 min but since I tried anotehr another gamemode lolz it's mine where the prob is

and wow, never thought of that! I'm gonna check things out right away, thnx for your quick respons allready

Pls don't let this stop anyone from posting more answers like this

Grts Riz

EDIT:

Found something that doesn't create any files, could that cause a crash (or 2? )

this is the code...

pawn Код:
(code)
I didn't find any files with a .cer extension so I'm thinking this ain't working. In the mean time I'll leave if out and test my server again

Again, pls don't let this stop anyone with helpfull repons.

Grts Riz
Err..
I'm not sure if that would cause a crash, it would, however, cause extreme lag when players are on.
You're updating those files under OnPlayerUpdate, which means it's opening files and writing data to them up to 50 times per second. I suggest you change that, though it's probably not the source of your crash.

The .cer files created from that script aren't being put in a folder, so if there are any they should be in the "scriptfiles" directory of your server.

I suggest putting in some debug messages on various callbacks (using print/SendClientMessageToAll), to see what happens before your server crashes. Then, go through the script, and check the code after your last debug message, as that is most likely where the problem is.
Reply


Messages In This Thread
Help - Debug - by Rizard - 21.09.2009, 07:52
Re: Help - Debug - by Mikep. - 21.09.2009, 08:11
Re: Help - Debug - by Rizard - 21.09.2009, 08:30
Re: Help - Debug - by ev0lution - 21.09.2009, 09:03
Re: Help - Debug - by Rizard - 21.09.2009, 09:15

Forum Jump:


Users browsing this thread: 1 Guest(s)