split a variables or separate variable
#2

pawn Код:
strmid(str,"2011-01-04",0,12,13);
then use sscanf from ******

pawn Код:
sscanf(str, "p<->iii", year, month, day);
//or
sscanf("2011 01 04", "iii", year month, day); // etc
Reply


Messages In This Thread
split a variables or separate variable - by Fab10 - 04.01.2011, 22:28
Re: split a variables or separate variable - by GaGlets(R) - 04.01.2011, 22:34
Re: split a variables or separate variable - by Fab10 - 04.01.2011, 22:57
Re: split a variables or separate variable - by Fab10 - 04.01.2011, 23:27
Re: split a variables or separate variable - by Jefff - 04.01.2011, 23:35
Re: split a variables or separate variable - by Fab10 - 04.01.2011, 23:41

Forum Jump:


Users browsing this thread: 1 Guest(s)