[SOLVED]How to use sscanf using 'additionnal delimiter' format?
#3

Quote:
Originally Posted by //exora
pawn Код:
new d,m,y;
sscanf(input, "p/iii", d,m,y);
pYear[playerid] = y;
pMonth[playerid] = m;
pDay[playerid] = d;
In this case, "input" is the date (as string obv). This would split 11/1/1970 to d = 11, m = 1, y = 1970
Okay, I see. I wasn't sure if I was doing the good thing.
Thanks!
Reply


Messages In This Thread
[SOLVED]How to use sscanf using 'additionnal delimiter' format? - by x-cutter - 03.01.2010, 13:32
Re: How to use sscanf using 'additionnal delimiter' format? - by woot - 03.01.2010, 13:42
Re: How to use sscanf using 'additionnal delimiter' format? - by x-cutter - 03.01.2010, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)