How to translate this sscanf function to avoid the plugin?
#4

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Oh boy, you're doing something which no one would EVER advice you... You should use sscanf because it's the best (C++, speed and reliability) and better than strtok.

PHP код:
p<,>ffffffD(-1)D(-1)D(-1
means PHP]f,f,f,f,f,f,d,d,d[/PHP]
f is float and d is for integer.

You can enter the float value (and the integer value) with the 'comma' (,) separator between them.
PHP код:
1.0,1.0,1.0,1.0,1.0,1.0,0,0,
but here, it loads the value from the file which are seperated by the comma.
I'm not using strtok anywhere too, I'm using the Pawn.CMD plugin by urShadow.

Thank you for the explanation ^-^ about what the sscanf string means.
Reply


Messages In This Thread
How to translate this sscanf function to avoid the plugin? - by iSanchez - 16.04.2017, 03:56
Re: How to translate this sscanf function to avoid the plugin? - by Logic_ - 16.04.2017, 04:03
Re: How to translate this sscanf function to avoid the plugin? - by Vince - 16.04.2017, 08:48
Re: How to translate this sscanf function to avoid the plugin? - by iSanchez - 18.04.2017, 18:08

Forum Jump:


Users browsing this thread: 2 Guest(s)