Optional Integers? SSCANF.
#4

You will probably have to reorder your command syntax in order for this to work.. but,

As far as I know, you'd have to do a separate thing like:

pawn Код:
if(sscanf(params, "uD(0)D(0)s[128]", user, date1, date2, string))
{
if(isnull(date1) { date1 = ..; }
else if(isnull(date2) { date2 = ..; }
}
and go on like that, although, I definately could be wrong. Just throwing ideas out there.
Reply


Messages In This Thread
Optional Integers? SSCANF. - by Dokins - 24.01.2012, 20:29
Re: Optional Integers? SSCANF. - by 2KY - 24.01.2012, 20:37
Re: Optional Integers? SSCANF. - by Dokins - 24.01.2012, 20:48
Re: Optional Integers? SSCANF. - by 2KY - 24.01.2012, 20:58
Re: Optional Integers? SSCANF. - by 2KY - 24.01.2012, 21:05

Forum Jump:


Users browsing this thread: 1 Guest(s)