ZCMD sscanf params
#1

Hello!
I am using ZCMD + sscanf to create commands.When I am using some commands ,I see in the console a sscanf warning: Format specifier does not match parameter count.
Should I use #pragma unused params? I have no complier errors and the commands are working perfect,but I get this console warning.
Thank you!
Reply
#2

sscanf sends you that warning because you have more parameters than specifiers.

Here, I'll show you an example:
Код:
new number, number2;
if(sscanf(params, "i", number)) // Has a single specifier and a single parameter. (Correct)
if(sscanf(params, "i", number, number2)) // Has a single specifier and two parameters. (Incorrect)
The incorrect one would send warnings in the console, just like it did for you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)