Sscanf Issue [Format specifier does not match parameter count] - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sscanf Issue [Format specifier does not match parameter count] (
/showthread.php?tid=323258)
Sscanf Issue [Format specifier does not match parameter count] -
Jack_Wilson - 05.03.2012
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.
Re: Sscanf Issue [Format specifier does not match parameter count] -
Jack_Wilson - 05.03.2012
Fixed the issue, the values were out of the brackets.
Not needed anymore.