moin, ich schlepp schon länger diesen einen Warning mit mir rum, und weiß nicht wie ich ihn wegbekommen:
(1112) : warning 204: symbol is assigned a value that is never used: "color"
public OnPlayerText(playerid, text[])
{
if (text[0] == 't')
{
new playerTeam = gTeam[playerid];
new string [128];
new color;
GetPlayerName(playerid, string, sizeof string);
format(string,sizeof(string),"Teamchat (t [text]) %s: %s",string,text[1]);
switch (playerTeam) {
case TEAM_COP: color = 0xFF0000B2;
case TEAM_RUSSIA: color = 0xFF0000B2;
case TEAM_TRIADEN: color = 0xFF0000B2;
case TEAM_ITAL: color = 0xFF0000B2;
case TEAM_BIKER: color = 0xFF0000B2;
case TEAM_GROVE: color = 0xFF0000B2;
case TEAM_BALLAS: color = 0xFF0000B2;
case TEAM_AZTECAS: color = 0xFF0000B2;
case TEAM_RIFA: color = 0xFF0000B2;
case TEAM_ARMY: color = 0xFF0000B2;
case TEAM_SANITATER: color = 0xFF0000B2;
case TEAM_FBI: color = 0xFF0000B2;
case TEAM_PILOT: color = 0xFF0000B2;
case TEAM_ZIVI: color =0xFF0000B2; //Zeile 1112
}
for (new i; i < MAX_PLAYERS; i++) {
if (gTeam[i] == playerTeam) {
SendClientMessage(i,0xFF0000B2,string);
}
}
return 0;
}
return 1;
}
An was liegt das? (ist ein Teamchat system)