07.02.2015, 11:40
I have made a chat system, it all works but in server logs it shows a warning with sscanf but I have not used any of the symbols in the warning:
Rep given to problem solver.
Quote:
[12:13:30] sscanf warning: sscanf specifiers do not require '' before them. |
pawn Код:
CMD:g(playerid, params[])
{
new str[150], text[128];
if(sscanf(params, "%s[128]", text)) return SCM(playerid, -1, "Usage: /g <text>");
format(str, sizeof(str), "["GREEN"Global"WHITE"] "GREY"%s "WHITE"("GREY"%i"WHITE"): %s", GetName(playerid), playerid, text);
SendClientMessageToAll(COLOR_WHITE, str);
return 1;
}