SA-MP Forums Archive
Server keeps crashing randomly - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server keeps crashing randomly (/showthread.php?tid=398840)



Server keeps crashing randomly - Moron - 11.12.2012

I've been editing a gamemode for quite some time now and I started to get random server crashes.

I've downloaded crashchecker plugin:

Quote:

[14:22:38] [debug] Server crashed while executing GMD.amx
[14:22:38] [debug] AMX backtrace:
[14:22:38] [debug] #0 native fwrite () [004056e0] from samp-server.exe
[14:22:38] [debug] #1 00002120 in ?? () from GMD.amx
[14:22:38] [debug] #2 00002390 in ?? () from GMD.amx
[14:22:38] [debug] #3 00057478 in ?? () from GMD.amx
[14:22:38] [debug] #4 0005a8d4 in public AutoSave () from GMD.amx
[14:22:38] [debug] System backtrace:
[14:22:38] [debug] #0 0040531e in ?? () from C:\Documents and Settings\DDD\Desktop\GMD\samp-server.exe

pawn Код:
public AutoSave(playerid)
{
        foreach (new i : Player)
        {
         if(PlayerDead[playerid] == 0)
         {
         Save(playerid,false);
         return 1;
         }
  }
  return 1;
}



Re: Server keeps crashing randomly - iSaad - 11.12.2012

Well you have an unclosed bracket i think re-write the code and indent it properly.


Re: Server keeps crashing randomly - Moron - 11.12.2012

But the brackets are closed and indentation wouldn't crash the server.