09.09.2013, 18:30
format
You format a message and then you do what you want with that formatted message.
Parameters:
(output[], len, const format[], {Float,_}:...)
You declare a variable with the size in []
So, it goes:
Done. Then you can send client/player message or in print(f), gametexts/textdraws etc.
You format a message and then you do what you want with that formatted message.
Parameters:
(output[], len, const format[], {Float,_}:...)
You declare a variable with the size in []
pawn Код:
// example:
new
some_string[ 128 ] // 128 is the max client message
;
pawn Код:
format( some_string, sizeof( some_string ), "An example of what we're going to print here. A string: %s | An integer: %d | A float: %f", "some text here", 10, 50.6418 );