Regarding sscanf
#1

I've noticed that with sscanf, if you put a string before an interger or even another array...

pawn Код:
if(sscanf(params, "s[123]ddd", string, var1, var2, var3)) return sendclien...(playerid, color, "usage: /bla [string] [var1] [var2] [var3]);
The problem is that, if the "string" contains any spaces at all, it basically tells you to go fuck yourself, and counts the space as a change to the next variable (?).

Is there any way to fix this without putting the strings at the end of the command (if that would even work..?)
Reply


Messages In This Thread
Regarding sscanf - by Antonio [G-RP] - 02.02.2011, 03:57
Re: Regarding sscanf - by (SF)Noobanatior - 02.02.2011, 04:19
Re: Regarding sscanf - by Antonio [G-RP] - 02.02.2011, 04:53
Re: Regarding sscanf - by (SF)Noobanatior - 02.02.2011, 05:05
Re: Regarding sscanf - by Retardedwolf - 02.02.2011, 05:14
Re: Regarding sscanf - by Joe Staff - 02.02.2011, 11:08
Re: Regarding sscanf - by Joe Staff - 02.02.2011, 15:52
Re: Regarding sscanf - by nemesis- - 02.02.2011, 16:00
Re: Regarding sscanf - by Antonio [G-RP] - 02.02.2011, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)