stock SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_Mafia1)
{
SetPlayerColor(playerid, TCOLOR_LIGHTGREEN);
}
else if (gTeam[playerid] == TEAM_Mafia2)
{
SetPlayerColor(playerid, TCOLOR_NAVYBLUE);
}
else if (gTeam[playerid] == TEAM_Mafia3)
{
SetPlayerColor(playerid, TCOLOR_BEIGE);
}
}
stock SetPlayerToTeamColor(playerid) { gTeam[playerid] = GetPlayerTeam(playerid); if (gTeam[playerid] == TEAM_Mafia1) { SetPlayerColor(playerid, TCOLOR_LIGHTGREEN); } else if (gTeam[playerid] == TEAM_Mafia2) { SetPlayerColor(playerid, TCOLOR_NAVYBLUE); } else if (gTeam[playerid] == TEAM_Mafia3) { SetPlayerColor(playerid, TCOLOR_BEIGE); } }
It Complies without Warnings / Errors But when i Choose any of the Teams my color doesn't Change....
|
printf("player %i team: %i", playerid, gTeam[playerid]);