02.10.2011, 19:29
It formats a string, size of that string, with text inbetween the double quotes.
%s means string, %d integer, format will replace those with the variables you specify after.
For example:
The infinite variables you pass at the end, are used from left to right (as they appear between the double quotes).
%s means string, %d integer, format will replace those with the variables you specify after.
For example:
pawn Код:
format(myStr, sizeof(myStr), "Hello %s, please count to %d.", strName, intNumber);