30.07.2013, 06:38
Hi,
I think it's sscanf bug, or i don't know how to fix it:
I want to load some stuff from database, some strings and numbers like:
And if string is a like "asdas asdasd asdasdsa", then in numbers some values go like a string, and it's get bugged...
I think it's sscanf bug, or i don't know how to fix it:
I want to load some stuff from database, some strings and numbers like:
Код:
new GETSTRING[ 50 ]; new GETSTRING2[ 50 ]; new NUMBERS[ 2 ];
Код:
sscanf(savginstring,"p<|>s[50]ds[50]d", GETSTRING, NUMBERS[ 0 ], GETSTRING2,NUMBERS[ 1 ] );