How to have IDs in chat?
#10

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
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!
Hmm, works fine for my server. Not really sure what the problem is, but you might already have a function similar to mine in your gamemode, that could be why it is sending it twice.

EDIT

YES, like randomkid said, add return 0; under it, this will solve it for sure because I have return 0; under mine but I didn't add it to this code. It should work after.

pawn Код:
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(text, 1024, "%s (%d): {FFFFFF}%s", PlayerName, playerid, text);
SendClientMessageToAll(GetPlayerColor(playerid), text);
return 0;
Should be like this.
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)