06.02.2014, 14:44
Hello, i need help on how to split one variable.
I tried with scanf but i dont know how to use as well and i got stuck...
here is my code:
tried too with sscanf(cache_get_row_float(i, 9),"f f ...",
and
sscanf(cache_get_row_float(i, 9),"%f%f...",
but it gives me error in first argument, idk why.
Its float and it must be another?
I need to split CheckPoints positions (float).
Thanks for all and sry for bad english.
Greetings
Ranslsad
I tried with scanf but i dont know how to use as well and i got stuck...
here is my code:
Код:
sscanf(cache_get_row_float(i, 9),"ffffffffffffffffffff", JCheckPoint[TmpID][1][CPX], JCheckPoint[TmpID][2][CPX], JCheckPoint[TmpID][3][CPX], JCheckPoint[TmpID][4][CPX], JCheckPoint[TmpID][5][CPX], JCheckPoint[TmpID][6][CPX], JCheckPoint[TmpID][7][CPX], JCheckPoint[TmpID][8][CPX], JCheckPoint[TmpID][9][CPX], JCheckPoint[TmpID][10][CPX], JCheckPoint[TmpID][11][CPX], JCheckPoint[TmpID][12][CPX], JCheckPoint[TmpID][13][CPX], JCheckPoint[TmpID][14][CPX], JCheckPoint[TmpID][15][CPX], JCheckPoint[TmpID][16][CPX], JCheckPoint[TmpID][17][CPX], JCheckPoint[TmpID][18][CPX], JCheckPoint[TmpID][19][CPX], JCheckPoint[TmpID][20][CPX]);
and
sscanf(cache_get_row_float(i, 9),"%f%f...",
but it gives me error in first argument, idk why.
Its float and it must be another?
I need to split CheckPoints positions (float).
Thanks for all and sry for bad english.
Greetings
Ranslsad