01.08.2010, 08:42
Hey!
It's me again, I just saw in my server's console when I use my /me or /pm command, an error message appears in it:
"sscanf warning: strings without a lenght are deprecated, please add a destination size"
It's new for me, please help how can i solve this problem. Thanks.
It's me again, I just saw in my server's console when I use my /me or /pm command, an error message appears in it:
"sscanf warning: strings without a lenght are deprecated, please add a destination size"
It's new for me, please help how can i solve this problem. Thanks.
pawn Код:
dcmd_me(playerid, params[])
{
new
msg[100],
str[128];
if(sscanf(params, "s", msg)) return SendClientMessage(playerid, colorFAIL, "Hasznбlat: /me <szцveg>");
if(strlen(msg) < 1) return SendClientMessage(playerid, colorFAIL, "Min. 1 karakter!");
if(strlen(msg) > 100) return SendClientMessage(playerid, colorFAIL, "Max. 100 karakter!");
format(str, sizeof(str), "%s %s.", GetName(playerid), msg);
SendClientMessageToAll(color, str);
return 1;
}