My own way of inline formatting:
pawn Код:
stock gFormatString[2048 char];
#define _format(%0,%1) \
(format(!gFormatString, sizeof(gFormatString), %0, %1), !gFormatString)
Got the idea one day when RealCop228 replied to the Useful Functions thread about my long SendClientMessageEx function, and I also got the prefix idea from Slice's translate.inc include (thanks to them).
So basically, with a little tweaking, you can now format strings very easily:
pawn Код:
SendClientMessage(playerid, COLOR_WHITE, _format("You have $%d. You are very rich!", GetPlayerMoney(playerid));
Last year, I made a non-macro version of the same function, but it's very inefficient since I wasn't actually very good at efficiency-wise scripting last year.
EDIT: I should probably clarify. The reason why it's 512 cells (no, not 2048, it's a packed array) is because you might want to use the function for long inputs, such as MySQL queries and such.