09.05.2015, 07:53
Your code is not wrong. In PAWN generally (this is not a PAWN feature though, "sscanf" is a 3rd-party plugin/function and "format" was made by Kalcor), 'd' and 'i' are treated as the same (optionally signed decimal integer).
AFAIK "format" (and thus "printf") doesn't support octal values at all (though it supports hexdecimal values through the 'x' and 'h' specifier).
"sscanf" on the other hand supports octal values through the 'o' specifier.
AFAIK "format" (and thus "printf") doesn't support octal values at all (though it supports hexdecimal values through the 'x' and 'h' specifier).
"sscanf" on the other hand supports octal values through the 'o' specifier.