Announce + Client Information
My first plugin,i didn't tested it out,but i wan't some comments ...
Code:
|
Re: Announce + Client Information
Code:
|
errr...
Yes? |
Quote:
|
Oh thx,can u explain why it need to be %i and not %s
|
%i = Integer (Number)
%s = String (Word) %d = Delimiter (minus, plus, etc. I think) I think that's what they are. |
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. |
| All times are GMT -4. The time now is 20:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.