Random Crashes...
#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


Messages In This Thread
Random Crashes... - by Nekom - 09.07.2010, 07:46
Re: Random Crashes... - by Grim_ - 09.07.2010, 09:07
Re: Random Crashes... - by Miikkel - 09.07.2010, 09:11
Re: Random Crashes... - by Betamaster - 09.07.2010, 11:14
Re: Random Crashes... - by Nekom - 09.07.2010, 15:11
Re: Random Crashes... - by Nekom - 10.07.2010, 09:58

Forum Jump:


Users browsing this thread: 3 Guest(s)