Macro SendFormatMessage, SendFormattedMessage, FormatMessage, or whatever
#7

Quote:
Originally Posted by » RyDeR «
I used as string "\"%s\" is my name!!" (%s = pName = "RyDeR")
and both runned them 1.000.000 times and format with 128 bytes used 656 ms.
CPF had 986 ms.

It's clearly that using it in your command is much faster.
Well of course format() is much faster, since It's a native function. And since the define consist of native functions only, it will always be faster then ****** CPF. And also, none of the defines in the first post work

pawn Код:
#define FormatMsgEx(%0,%1,%2,%3) new string[128]; \
format(string,128,%2,%3); \
SendClientMessage(%0,%1,%2)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)