Learning Format ?
#7

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:
pawn Код:
format(myStr, sizeof(myStr), "Hello %s, please count to %d.", strName, intNumber);
The infinite variables you pass at the end, are used from left to right (as they appear between the double quotes).
Reply


Messages In This Thread
Learning Format ? - by ServerScripter - 02.10.2011, 19:14
Re: Learning Format ? - by =WoR=Varth - 02.10.2011, 19:16
Re: Learning Format ? - by ServerScripter - 02.10.2011, 19:21
Re: Learning Format ? - by Kingunit - 02.10.2011, 19:23
Re: Learning Format ? - by ServerScripter - 02.10.2011, 19:24
Re: Learning Format ? - by Jafet_Macario - 02.10.2011, 19:25
Re: Learning Format ? - by GrimR - 02.10.2011, 19:29
Re: Learning Format ? - by ServerScripter - 02.10.2011, 19:32
Re: Learning Format ? - by Kingunit - 02.10.2011, 19:39
Re: Learning Format ? - by PowerPC603 - 02.10.2011, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)