sscanf warning: Format specifier does not match parameter count.
#1

Hello !

I have this warning, with this code:

pawn Код:
COMMAND:give(playerid, params[])
{
    new id,
        action[36],
        string[144],
        qty;
   
    if(sscanf(params, "s[36]", action))
    {
        return SendClientMessage(playerid, -1, "Usage: /give <item> <id> <qty>");
    }
   
    if(!strcmp(action, "test", true, 4))
    {
        if(sscanf(params, "s[36]ud", action, id, quantite))
        {
            return SendClientMessage(playerid, -1, "Usage: /give test <id> <qty>");
        }
    }
    return 1;
}
Thx!
Reply


Messages In This Thread
sscanf warning: Format specifier does not match parameter count. - by Baltimore - 27.11.2014, 10:16
Re : sscanf warning: Format specifier does not match parameter count. - by Dutheil - 27.11.2014, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)