string doesn't display name
#2

Quote:
Originally Posted by CesarLT
Посмотреть сообщение
Hello everyone, title says it all..

Here's the string:

pawn Код:
new log[128];
    new pName[25];
    GetPlayerName(playerid, log, sizeof(log));
    format(log, sizeof(log), "**[SERVER]** {FFFFFF}- You're currently logged in as: {FF8921}%s{FFFFFF}.", pName);
    SendClientMessageToAll(COLOR_ORANGE, log);
When I log in, I can see only You're currently logged in as: .

Thanks in advance for the help.
You're formatting the playername in the log string, not in the pName string
Thus pName is never formatted and will be left empty
Reply


Messages In This Thread
string doesn't display name - by CesarLT - 23.09.2013, 17:42
Re: string doesn't display name - by knackworst - 23.09.2013, 17:43
Re: string doesn't display name - by Konstantinos - 23.09.2013, 17:43
Re: string doesn't display name - by Areax - 23.09.2013, 17:44
Re: string doesn't display name - by CesarLT - 23.09.2013, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)