Random Crashes... - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Random Crashes... (
/showthread.php?tid=158228)
Random Crashes... -
Nekom - 09.07.2010
I host the server in ServerFFS and I use a GM RP made from scratch and 3 plugins: Incognito Streamer Plugin, G-Stylezzz MySQL Plugin and sscanf plugin by ******...
I have crashes after random things, why? I don't know where is the crash_info.txt too, in the ftp folder there isn't...
Re: Random Crashes... -
Grim_ - 09.07.2010
This could be for anything, the only thing I can recommend is you try finding a few specific times that it crashed, what occured around then, and try debugging it out of the script.
Re: Random Crashes... -
Miikkel - 09.07.2010
Does your Gamemode gives any warnings when you compile?
Re: Random Crashes... -
Betamaster - 09.07.2010
@ Nekom, you need to debug your gamemode yourself. We cannot help you.
Use print and printf to help debug your gamemode, writing variables etc to the server console / log which you can review.
Re: Random Crashes... -
Nekom - 09.07.2010
Quote:
Originally Posted by Miikkel
Does your Gamemode gives any warnings when you compile?
|
No...
But can server crashes be caused by the gamemode's script?
Plugins can cause problems?
Re: Random Crashes... -
Nekom - 10.07.2010
I discovered the cause of crashes... they was caused by the sscanf plugin.
This was a part of the /report command (zcmd)
Код:
new id, reason[64];
if(sscanf(params, "ds[128]", id, reason)) return SendClientMessage(playerid, WHITE, "Use /report <playerid> <reason>");
The reason string's size is less than the sscanf format string's size so when a player writed in the command a reason bigger then 64 caused a crash of the sscanf plugin...
But if I do
Код:
new id, reason[64];
if(sscanf(params, "ds[64]", id, reason)) return SendClientMessage(playerid, WHITE, "Use /report <playerid> <reason>");
there aren't problems