solved
#1

solved
Reply
#2

Код:
public OnPlayerText(playerid, text[])
{
	if(text[0]== '!')
	{
  new string[STR], tmpcolour;
  switch(Player[playerid][pTeam])
  {
  case T_REF: tmpcolour = COLOR_LBLUE;
  case T_DEF: tmpcolour = COLOR_LBLUE;
  case T_ATT: tmpcolour = COLOR_LBLUE;
  default:
  {
  SendClientMessage(playerid, AAD_COLOR_GREY, "You are not spawned");
  return 0;
  }
  HERE! <<<<
  }
  format(string,STR,"[TEAM] %s: %s", Playername(playerid), text[1]);
  for(new i; i < MAX_PLAYERS; i++)
  {
  if(IsPlayerConnected(i))
  {
  if(Player[playerid][pTeam] == Player[i][pTeam])
  {
  	SendClientMessage(i, tmpcolour, string);
  }
  }
  }
  return 0;
	}
	return 1;
}
Reply
#3

i have this error:
Код:
(455) : error 002: only a single statement (or expression) can follow each "case"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)