SA-MP Forums Archive
sscanf warning: Unknown format specifier ',', skipping. - 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 warning: Unknown format specifier ',', skipping. (/showthread.php?tid=446526)



sscanf warning: Unknown format specifier ',', skipping. - Vlad64 - 26.06.2013

Hey, i'm getting this error recently in the console since i added a few sscanf's in the script.

Code:
Код:
[14:38:49] sscanf warning: Unknown format specifier ',', skipping.
[14:38:53] sscanf warning: Unknown format specifier ',', skipping.
[14:38:56] sscanf warning: Unknown format specifier ',', skipping.
[14:38:58] sscanf warning: Unknown format specifier ',', skipping.
[14:39:06] sscanf warning: Unknown format specifier ',', skipping.
[14:39:20] sscanf warning: Unknown format specifier ',', skipping.
[14:39:23] sscanf warning: Unknown format specifier ',', skipping.
[14:39:27] sscanf warning: Unknown format specifier ',', skipping.
[14:40:45] sscanf warning: Unknown format specifier ',', skipping.
[14:40:48] sscanf warning: Unknown format specifier ',', skipping.
The places where sscanf appears:
pawn Код:
if(sscanf(params,"r,i", target, carhp)) return SCM(playerid,COLOR_GRAY,"Syntax: /setplayercarhp [playerid] [value]");
pawn Код:
if(sscanf(params,"r,i", target, armor)) return SCM(playerid,COLOR_GRAY,"Syntax: /setarmor [playerid] [value]");
pawn Код:
if(sscanf(params,"r,i", target, phealth)) return SCM(playerid,COLOR_GRAY,"Syntax: /sethp [playerid] [value]");
pawn Код:
if(sscanf(params,"i", carid)) return SCM(playerid,COLOR_GRAY,"Syntax: /getcar [carid]");
pawn Код:
if(sscanf(params,"i", carid)) return SCM(playerid,COLOR_GRAY,"Syntax: /getincar [carid]");
pawn Код:
if(sscanf(params,"i", carid)) return SCM(playerid,COLOR_GRAY,"Syntax: /gotocar [carid]");
Any help please?


AW: sscanf warning: Unknown format specifier ',', skipping. - Skimmer - 26.06.2013

Don't enter comma between characters (r and i)

pawn Код:
if(sscanf(params,"ri", target, carhp))



Re: AW: sscanf warning: Unknown format specifier ',', skipping. - Vlad64 - 26.06.2013

Quote:
Originally Posted by Skimmer
Посмотреть сообщение
Don't enter comma between characters (r and i)

pawn Код:
if(sscanf(params,"ri", target, carhp))
Thank you