How to have IDs in chat?
#9

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
Dont works!

When i type message this show up:
fiki574_CRO(0): Hi! ----------> black color
fiki574_CRO: fi ----------> fi? wtf i type hi! and it is in normal random color!
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: 2 Guest(s)