10.07.2010, 09:58
I discovered the cause of crashes... they was caused by the sscanf plugin.
This was a part of the /report command (zcmd)
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
there aren't problems
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>");
But if I do
Код:
new id, reason[64]; if(sscanf(params, "ds[64]", id, reason)) return SendClientMessage(playerid, WHITE, "Use /report <playerid> <reason>");