Need help with chat
#5

I tried to do it that way, but i had a few problems when IG, my code is:

Код:
if (PlayerInfo[playerid][pTeam]== 1)
{
  SendClientMessageToAll(TEAM_CYAN_COLOR, string);
  return 1;
}
else if (PlayerInfo[playerid][pTeam]== 2)
{
  SendClientMessageToAll(TEAM_BLUE_COLOR, string);
  return 1;
It compiles but when i do /o [chat] it comes up with both my name and the chat in that color, i just want to have the name in that color. At the start i have
Код:
format(string, sizeof(string), "%s: %s", sendername, result);
printf("%s", string);
which doesn't do anything. Is there anything that i have missed that could fix this?
Reply


Messages In This Thread
Need help with chat - by sexybeast - 23.11.2009, 08:15
Re: Need help with chat - by sexybeast - 24.11.2009, 01:19
Re: Need help with chat - by Guso - 24.11.2009, 01:44
Re: Need help with chat - by mamorunl - 24.11.2009, 07:50
Re: Need help with chat - by sexybeast - 24.11.2009, 09:23
Re: Need help with chat - by virspector - 24.11.2009, 11:34
Re: Need help with chat - by sexybeast - 24.11.2009, 11:44
Re: Need help with chat - by mamorunl - 24.11.2009, 14:44
Re: Need help with chat - by miokie - 24.11.2009, 15:23
Re: Need help with chat - by sexybeast - 24.11.2009, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)