 |
|
hello, i am pm
Join Date: Jan 2004
Location: Canalization
|

03-03-2006
, 10:44
|
#7
|
Those are printf-like format specifiers; google for printf to know more (although I think the new optimized format in the upcoming AMXx release doesn't support all of the format type characters)
Anyway:
%d or %i -> Prints a signed number in base 10 (decimal)
%u -> Prints an unsigned (=always positive) number in base 10
%x -> Prints an unsigned number in base 16 (hexadecimal)
%c -> Prints a character (say you'd pass 'a' as parameter, then it would print an a)
%f -> Prints a decimal floating point number (something like 3.14)
%g is used as %f; I always use %f because I don't know the difference.
%s -> Prints a string (like "hello pm" )
There's also flags, width and precision; like %02d will alway output 2 digits at least; if it would print only one digit a 0 will be appended on the left side.
__________________
hello, i am pm
|
|
|
|