25.11.2013, 19:08
Quote:
|
what if you don't specify the size of the string ?
see what it says then |
---
I actually run an example of your code:
pawn Код:
public OnFilterScriptInit( )
{
new
tmp[ 10 ],
auxParams[ 124 ]
;
sscanf( "commands blablablabla....", "s[10]S[124]", tmp, auxParams );
printf( "1: \"%s\" & 2: \"%s\"", tmp, auxParams );
return 1;
}
pawn Код:
[22:07:54] sscanf warning: No default value found.
[22:07:54] 1: "commands" & 2: "blablablabla...."
pawn Код:
public OnFilterScriptInit( )
{
new
tmp[ 10 ],
auxParams[ 124 ]
;
sscanf( "commands", "s[10]S(Optional string)[124]", tmp, auxParams );
printf( "1: \"%s\" & 2: \"%s\"", tmp, auxParams );
return 1;
}
So I suggest you to post your problem in the sscanf's thread (since it's related to that) and you may get your answer faster than from this section.


