On pawn forum
It means that you can provide just a starting point of something, for example you have a string full of values, and you know for example, where is an float value, so far it seems, that to get it you need just to floatvar(cmdtext[firstchar]) which you can for example refine from command lenght + 2 (actually for floats +1 or +3 fits aswell, haven't tested strval so much) which yields me a much easier life being C++.
Example old style command could be as follows:
pawn Код:
if (!strcmp(cmdtext, "/gravity "))
{
gravity=floatvar(cmdtext[9]);
}
Which would give an:
INPUT /gravity 0.006
OUTPUT 0.006 (as a float)
And as i said, for floats, you can target either the 8th character (In example it's a whitespace) 9th character (It's 0) and even 10th character (It's a dot)
Just for real saying, otherwise you would need to subtract the remains of the string - somewhat like this:
new string;
strmid(<forgot params as i don't use it

>);
floatvar(string);
Well I'm quite sure, that my version is faster in the right context.