GetPlayerName error
#2

You store the name in a variable and use the variable to print it.

pawn Код:
new
    pname[ MAX_PLAYER_NAME ]
;
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);

// blablabla..

format(String, sizeof(String), "%s has used command %s", pname, command);
SendClientMessage(i, blue, String);
Reply


Messages In This Thread
GetPlayerName error - by sarab_singh - 06.08.2013, 12:37
Re: GetPlayerName error - by Konstantinos - 06.08.2013, 13:03
Re: GetPlayerName error - by sarab_singh - 06.08.2013, 13:09
Re: GetPlayerName error - by Konstantinos - 06.08.2013, 13:12
Re: GetPlayerName error - by sarab_singh - 06.08.2013, 13:15

Forum Jump:


Users browsing this thread: 2 Guest(s)