Warning sscanf! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Warning sscanf! (
/showthread.php?tid=529637)
Warning sscanf! -
Noliax8 - 03.08.2014
Hello
I can't fix errors, please help me.
I've tried:
pawn Код:
new tmp[100], str[20];
sscanf(params, "s[20]S", str, tmp);
[10:58:38] sscanf warning: No default value found.
[10:58:38] sscanf warning: Format specifier does not match parameter count.
AND
pawn Код:
new tmp[100], str[20];
sscanf(params, "s[20]S[20]", str, tmp);
[11:02:15] sscanf warning: No default value found.
[11:02:15] sscanf warning: Unknown format specifier '[', skipping.
[11:02:15] sscanf warning: Unknown format specifier '2', skipping.
[11:02:15] sscanf warning: Unknown format specifier '0', skipping.
[11:02:15] sscanf warning: Unknown format specifier ']', skipping.
[11:02:15] sscanf warning: Format specifier does not match parameter count.
Thank you.
Jonas
Re: Warning sscanf! -
Segura - 03.08.2014
Try to put the S as lowercase.
Re: Warning sscanf! -
Noliax8 - 03.08.2014
I can't, I must to use S for tmp
Re: Warning sscanf! -
Noliax8 - 03.08.2014
s[20]S[20]()
??
Re: Warning sscanf! -
iFarbod - 03.08.2014
OR
Код:
s[20]S(Default Value)[20]
Re: Warning sscanf! -
Noliax8 - 03.08.2014
Quote:
Originally Posted by iFarbod
Код:
s[20]S(Default Value)[20]
|
I CAN use () if I want no value?