GetPlayerName problem
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
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 []
pawn Код:
// example:
new
    some_string[ 128 ] // 128 is the max client message
;
So, it goes:
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 );
Done. Then you can send client/player message or in print(f), gametexts/textdraws etc.
Perfect! Thanks so much
Reply


Messages In This Thread
GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:15
Re: GetPlayerName problem - by Konstantinos - 09.09.2013, 18:18
Re: GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:25
Re: GetPlayerName problem - by Konstantinos - 09.09.2013, 18:30
Re: GetPlayerName problem - by ExtendedCarbon - 09.09.2013, 18:32

Forum Jump:


Users browsing this thread: 5 Guest(s)