konnte auf meinen alten Thread net mehr antworten. wäre irgendwie net mehr berechtigt. egal ich poste dann hier
kam ein Error beim Compilen:
fatal error 100: cannot read from file: "utils"
hier der Code den ich hinzugefügt habe:
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)//Zivi einfach so lassen
{
SetPlayerColor(playerid,#define COLOR 0xFFFFFFFF);
}
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Frak nr 1
{
SetPlayerColor(playerid,#define COLOR 0x0066FFFF);
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//Frak nr 2
{
SetPlayerColor(playerid,#define COLOR 0x0033CCFF);
}
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Frak nr 3
{
SetPlayerColor(playerid,#define COLOR 0x009900FF);
}
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Frak nr 4
{
SetPlayerColor(playerid,#define COLOR 0xFF0000FF);
}
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Frak nr 5
{
SetPlayerColor(playerid,#define COLOR 0x333333CA);
}
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Frak nr 6
{
SetPlayerColor(playerid,#define COLOR 0x999999CA);
}
if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Frak nr 7
{
SetPlayerColor(playerid,#define COLOR 0x996600CA);
}
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//Frak nr 8
{
SetPlayerColor(playerid,#define COLOR 0x33FFFFFF);
}
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//Frak nr 9
{
SetPlayerColor(playerid,#define COLOR 0x99CC99FF);
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Frak nr 10
{
SetPlayerColor(playerid,#define COLOR 0xFFFF00FF);
}
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 11
{
SetPlayerColor(playerid,#define COLOR 0x996666FF);
}
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Frak nr 12
{
SetPlayerColor(playerid,#define COLOR 0x66FF33FF);
}
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Frak nr 13
{
SetPlayerColor(playerid,#define COLOR 0x993399FF);
}
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 11)//Frak nr 14
{
SetPlayerColor(playerid,#define COLOR 0x666633FF);
}
}
}