Random Crashes...
#1

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...
Reply
#2

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.
Reply
#3

Does your Gamemode gives any warnings when you compile?
Reply
#4

@ 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.
Reply
#5

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?
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)