String errors.
#1

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.

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;
}
Reply


Messages In This Thread
String errors. - by Nonameman - 01.08.2010, 08:42
Re: String errors. - by iggy1 - 01.08.2010, 08:44
Re: String errors. - by Nonameman - 01.08.2010, 08:45
Re: String errors. - by iggy1 - 01.08.2010, 08:52
Re: String errors. - by smeti - 01.08.2010, 09:40

Forum Jump:


Users browsing this thread: 1 Guest(s)