27.11.2009, 13:51
Sscanf's original code has a bug with floats. Replace case f with the next code (fix wasn't made by me btw).
pawn Код:
case 'f':
{
new changestr[16], changepos = 0, strpos = stringPos;
while(changepos < 16 && string[strpos] && string[strpos] != delim)
{
changestr[changepos++] = string[strpos++];
}
changestr[changepos] = '\0';
setarg(paramPos,0,_:floatstr(changestr));
}