SendTeamMessage
#8

I tried to fix it, its now this:


Stock:
Код:
stock SendPoliceMessage(COLOR, string[])
{
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
     if(IsPlayerConnected(i) && GetPlayerTeam(i) == 1)
     {
        SendClientMessage(i, COLOR_LIGHTBLUE, string);
     }
  }
  return 0;
}
And the Command itself:
Код:
	if((strcmp(cmd, "/r", true) == 0) || (strcmp(cmd, "/radio", true) == 0))
	{
	if(GetPlayerTeam(playerid) == 1)
	{
	format(string, sizeof(string), "* Radio: %s: %s", pName, string);
	SendPoliceMessage(COLOR_LIGHTBLUE, string);
	}
	return 1;
	}
ERROR:

Quote:

C:\Documents and Settings\Wouter\Bureaublad\SA-MP Scripting\pawno\PoliceFaction.pwn(293) : warning 203: symbol is never used: "COLOR"

Reply


Messages In This Thread
SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:18
Re: SendTeamMessage - by ViruZZzZ_ChiLLL - 29.07.2010, 11:24
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:28
Re: SendTeamMessage - by Vince - 29.07.2010, 11:32
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:43
Re: SendTeamMessage - by Vince - 29.07.2010, 11:46
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:48
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 11:53
Re: SendTeamMessage - by DragonBlaster50 - 29.07.2010, 12:27
Re: SendTeamMessage - by jonrb - 29.07.2010, 13:16

Forum Jump:


Users browsing this thread: 1 Guest(s)