sscanf Warning
#1

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.
Reply
#2

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
Reply
#3

So is there a way to fix this?
Reply
#4

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
Reply
#5

It's a result of using wrong parameters (count). e.g you used 3 parameters (wrong) instead of using 4 parameters (correct).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)