Sscanf Issue [Format specifier does not match parameter count]
#1

When I try to execute this command, I get the following error.
Код:
sscanf warning: Format specifier does not match parameter count.
This is quite weird as the parameters are all valid, as far as I know, could anybody please help me?
The code is below.
pawn Код:
CMD:createproperty(playerid, params[])
{
    if(PlayerInfo[playerid][pAdminLevel] >= 1338)  {
        new BizTitle[32], BizInterior, Float:BizEntrance[3], Float:BizDestination[3];
        if(sscanf(params, "s[32]iffffff"), BizTitle, BizInterior, BizEntrance[0], BizEntrance[1], BizEntrance[2], BizDestination[0], BizDestination[1], BizDestination[2])
        {
            return SendClientMessage(playerid, COLOR_WHITE, "Usage: /createproperty [title] [interiorid] [entrance x] [entrance y] [entrance z] [destination x] [destination y] [destination z]");
        }
        CreateBusiness(BizTitle, BizInterior, random(1000000), BizEntrance, BizDestination);
    }
    return 1;
}
Thanks.
Reply
#2

Fixed the issue, the values were out of the brackets.
Not needed anymore.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)