PDA

View Full Version : SSCANF WARNING


itachi
20/04/2017, 06:42 AM
If I start my server,server.log send this :

[08:31:48] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[08:31:48] sscanf warning: No default value found.
[08:31:48] sscanf warning: Format specifier does not match parameter count.
[08:31:50] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[08:31:50] sscanf warning: No default value found.
[08:31:50] sscanf warning: Strings without a length are deprecated, please add a destination size.

X337
20/04/2017, 07:21 AM
You are using 'z' specifier for sscanf in your codes which is deprecated, replace them with 'S' if you have a default value, otherwise use 's' and also provide string destination length.

AjaxM
20/04/2017, 07:23 AM
sscanf warning: 'z' is deprecated, consider using 'S' instead.

You are using 'z' somewhere in the script instead of using the specifier 's'.

Example:


if(sscanf(params, "z", ...))


Use 'S' instead of 'z'.

sscanf warning: Strings without a length are deprecated, please add a destination size.

Example:


new eg[5];

if(sscanf(params, "s", eg))


Should be


new eg[5];

if(sscanf(params, "s[5]", eg))


This can even cause your server to crash.

iLearner
20/04/2017, 07:46 AM
sscanf warning: 'z' is deprecated, consider using 'S' instead.

You are using 'z' somewhere in the script instead of using the specifier 's'.

Example:


if(sscanf(params, "z", ...))


Use 'S' instead of 'z'.

sscanf warning: Strings without a length are deprecated, please add a destination size.

Example:


new eg[5];

if(sscanf(params, "s", eg))


Should be


new eg[5];

if(sscanf(params, "s[5]", eg))


This can even cause your server to crash.

let's not exaggerate.