05.03.2012, 07:03
When I try to execute this command, I get the following error.
This is quite weird as the parameters are all valid, as far as I know, could anybody please help me?
The code is below.
Thanks.
Код:
sscanf warning: Format specifier does not match parameter count.
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;
}