sscanf Warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: sscanf Warning (
/showthread.php?tid=444582)
sscanf Warning -
ExtremeReality - 17.06.2013
Well I need help fixing this warning...
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
[05:43:11] sscanf warning: Format specifier does not match parameter count.
Re: sscanf Warning -
Dongi - 17.06.2013
Quote:
******:
I think this might be a bug caused by having quiet parameters at the end of the specifier - sscanf thinks there should be a variable to store the data when there shouldn't. However, the standard way of doing something like this is just to collect all the parameters at once with "s[36]i", not do them in multiple parts. You can still check they typed the right things in order.
|
Read what it says above
Re: sscanf Warning -
ExtremeReality - 17.06.2013
So is there a way to fix this?
Re: sscanf Warning -
Yves - 17.06.2013
you can see the warning lists here. you can fix it you just need to find were the warning is coming from.
https://sampforum.blast.hk/showthread.php?tid=120356
Re: sscanf Warning -
Red_Dragon. - 17.06.2013
It's a result of using wrong parameters (count). e.g you used 3 parameters (wrong) instead of using 4 parameters (correct).