Raised This Month: $ Target: $400
 0% 

Announce + Client Information


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-03-2006 , 10:44  
Reply With Quote #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
PM is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode