Sscanf crash!?
#1

Код:
[10:43:07] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[10:43:07] sscanf warning: No default value found.
[10:43:07] sscanf warning: Format specifier does not match parameter count.
[10:43:11] [kill] Deznuts killed Kostya_2014 Sniper Rifle
[10:43:24] [chat] [Aki_Tomovic]: kostay where are you from
[10:43:27] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[10:43:27] sscanf warning: No default value found.
[10:43:27] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:43:27] sscanf warning: String buffer overflow.
[10:43:28] [chat] [Shawn]: .wtf is that -_-
[10:43:35] [chat] [Silver]: . What is it?
[10:43:39] [chat] [Shawn]: .that report
[10:43:47] sscanf warning: 'z' is deprecated, consider using 'S' instead.
[10:43:47] sscanf warning: No default value found.
[10:43:47] sscanf warning: Strings without a length are deprecated, please add a destination size.
[10:43:47] sscanf warning: String buffer overflow.
server crashed after that any help?
Reply
#2

The crash might not be from the sscanf, it mostly just prints the warnings and that's it. So load crashdetect plugin to be sure.

About the warnings above: "z" is no longer used for optional strings but you have to use "S(some text here)[size_here]"

String buffer overflow is when using "s" specifier with a size of N and it takes more characters than that.

About the no default value found, I suppose it's about "z" so it'll be fixed.

About the strings without a length are deprecated, means using "s" without any size. It must be for example: "s[24]".

The last one that specifiers do not match with the arguments (variables to store).

All of them and more are written here: https://sampforum.blast.hk/showthread.php?tid=570927
Reply
#3

Thanks konsta! You are very helpful !! +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)