Color chat?
#6

Quote:
Originally Posted by Servidor_BRASIL
Almost gave, but failed, instead of the color out of the color of the nickname, it leaves black, regardless of the color of the player!

What could it be?

Code:

public OnPlayerText (playerid, text [])
{
new string[128];
new name[24];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s: %s",name,text);
SendClientMessageToAll(GetPlayerColor(playerid),st ring);
return 1;
}

Thank you!
It's impossible! The GetPlayerColor(playerid) function gives the color back that the player has. It can't be black if the player is white.
Reply


Messages In This Thread
Color chat? - by Servidor_BRASIL - 03.12.2008, 19:38
Re: Color chat? - by JaTochNietDan - 03.12.2008, 19:41
Re: Color chat? - by Norn - 03.12.2008, 19:54
Re: Color chat? - by Serbish - 03.12.2008, 19:55
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 20:01
Re: Color chat? - by Serbish - 03.12.2008, 20:05
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 20:09
Re: Color chat? - by Mikep - 03.12.2008, 20:14
Re: Color chat? - by Servidor_BRASIL - 03.12.2008, 21:35
Re: Color chat? - by Mikep - 03.12.2008, 21:38
Re: Color chat? - by randomkid88 - 10.08.2010, 03:13
Re: Color chat? - by bestr32 - 16.01.2012, 19:15

Forum Jump:


Users browsing this thread: 1 Guest(s)