Set player color ain't working
#7

Quote:
Originally Posted by Stanford
Посмотреть сообщение
So you want his name to appear in the chat as his color?, here's an example:
pawn Код:
public OnPlayerText(playerid, text[])
{
      if(AccountInfo[playerid][pColor] == 2) // or any number that represents red (u set these things)
      {
            new string[128], playername[MAX_PLAYER_NAME];
            GetPlayerName(playerid, playername);
            format(string,sizeof(string), "%s:"#COL_WHITE" %s", playername,text);
      }
      SendClientMessageToAll(COLOR_WHITE, string);
      return 1;
}
Set the defintions of the colors.
hint: #COL_WHITE is a 0.3c color.
I hope I helped any feedback would be appreciated!
eRROR
Код:
warning 202: number of arguments does not match definition
Код:
            GetPlayerName(playerid, playername);
Reply


Messages In This Thread
Set player color ain't working - by Kruno88 - 05.02.2015, 09:45
Re : Set player color ain't working - by Alvin007 - 05.02.2015, 10:11
Re: Set player color ain't working - by Kruno88 - 05.02.2015, 10:24
Re: Set player color ain't working - by Stanford - 05.02.2015, 10:31
Re: Set player color ain't working - by Kruno88 - 05.02.2015, 10:36
Re: Set player color ain't working - by Ciarannn - 05.02.2015, 11:05
Re: Set player color ain't working - by Kruno88 - 05.02.2015, 18:01
Re: Set player color ain't working - by HY - 05.02.2015, 18:21
Re: Set player color ain't working - by NGGMars - 05.02.2015, 18:24

Forum Jump:


Users browsing this thread: 2 Guest(s)