08.12.2009, 15:08
solved
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; }
(455) : error 002: only a single statement (or expression) can follow each "case"