Confusion: PAWN doesn't differentiate between i and d specifiers?
#2

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.
Reply


Messages In This Thread
Confusion: PAWN doesn't differentiate between i and d specifiers? - by [KHK]Khalid - 09.05.2015, 07:22
Re: Confusion: PAWN doesn't differentiate between i and d specifiers? - by maddinat0r - 09.05.2015, 07:53

Forum Jump:


Users browsing this thread: 1 Guest(s)