Warning sscanf!
#1

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

Try to put the S as lowercase.
Reply
#3

I can't, I must to use S for tmp
Reply
#4

s[20]S[20]()

??
Reply
#5

Код:
s[20]s[20]
OR

Код:
s[20]S(Default Value)[20]
Reply
#6

Quote:
Originally Posted by iFarbod
Посмотреть сообщение
Код:
s[20]S(Default Value)[20]
I CAN use () if I want no value?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)