string doesn't display name
#5

Quote:
Originally Posted by knackworst
Посмотреть сообщение
You're formatting the playername in the log string, not in the pName string
Thus pName is never formatted and will be left empty
Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
GetPlayerName(playerid, pName, sizeof(pName));
Quote:
Originally Posted by Areax
Посмотреть сообщение
pawn Код:
new log[128];
new pName[25];
GetPlayerName(playerid, pName, sizeof(pName));
format(log, sizeof(log), "**[SERVER]** {FFFFFF}- You're currently logged in as: {FF8921}%s{FFFFFF}.", pName);
SendClientMessageToAll(COLOR_ORANGE, log);
My bad lol, thank you everyone..
Sorry for the trouble :P
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)