Y-Less / sscanf

SA:MP sscanf plugin originally made by @Y-Less
Other
119 stars 49 forks source link

extract macro can't handle Float tag #23

Closed Daniel-Cortez closed 2 years ago

Daniel-Cortez commented 5 years ago

extract macro gives an error in the following example:

#include <a_samp>
#include <sscanf2>
main()
{
    static params[] = "4 5.0";
    extract params -> new vehicleid, Float:fuel; // error 029: invalid expression, assumed zero
}

It seems that the problem was introduced in 9d54c11d3320a5bccf20ce880b1a9ed9514920ca, the above example compiles well with the previous versions of sscanf2.inc.

Y-Less commented 2 years ago

Fixed.