How to have IDs in chat?
#8

Quote:
Originally Posted by grand.Theft.Otto
Посмотреть сообщение
I doubt that code is going to work and looks wrong.

Use this:

pawn Код:
new PlayerName[MAX_PLAYER_NAME]; // new variable to store the players name
GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); // gets the name of PlayerName (the var we created)
format(text, 1024, "%s (%d): {FFFFFF}%s", PlayerName, playerid, text); // formats the output of the message
SendClientMessageToAll(GetPlayerColor(playerid), text); // sends the message to the whole server
You're right mine wouldn't work, I'll remember not to post as soon as I get up. (copied out of my default RP chat)
Reply


Messages In This Thread
How to have IDs in chat? - by fiki574 - 17.05.2011, 19:41
Re: How to have IDs in chat? - by robintjeh - 17.05.2011, 19:44
Re: How to have IDs in chat? - by fiki574 - 17.05.2011, 19:45
Re: How to have IDs in chat? - by fiki574 - 17.05.2011, 19:57
Re: How to have IDs in chat? - by PrawkC - 17.05.2011, 20:02
Re: How to have IDs in chat? - by DeadAhead - 17.05.2011, 20:04
Re: How to have IDs in chat? - by grand.Theft.Otto - 17.05.2011, 20:06
Re: How to have IDs in chat? - by PrawkC - 17.05.2011, 20:09
Re: How to have IDs in chat? - by fiki574 - 17.05.2011, 20:14
Re: How to have IDs in chat? - by grand.Theft.Otto - 17.05.2011, 20:20

Forum Jump:


Users browsing this thread: 1 Guest(s)