Ich habe folgenden Error :
ZitatC:\Dokumente und Einstellungen\-Florian-\Eigene Dateien\Downloads\MrIllusion\MrIllusion\gamemodes\eRPnew-problem.pwn(1927) : error 004: function "SetPlayerToTeamColor" is not implemented
und so sieht die Zeile aus:
if(Spectate[i] == 253)
{
TogglePlayerControllable(i, 1);
TogglePlayerSpectating(i, 0);
SetPlayerInterior(i,Unspec[i][sPint]);
PlayerInfo[i][pInt] = Unspec[i][sPint];
PlayerInfo[i][pLocal] = Unspec[i][sLocal];
Unspec[i][sLocal] = 255;
SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][sPx], Unspec[i][sPy], Unspec[i][sPz]-1.0, 1.0, -1, -1, -1, -1, -1, -1);
gTeam[i] = PlayerInfo[i][pTeam];
SetPlayerToTeamColor(i); // das ist die Error Zeile
MedicBill[i] = 0;
if(PlayerInfo[i][pDonateRank] > 0)
{
SetSpawnInfo(i, PlayerInfo[i][pTeam], PlayerInfo[i][pModel], Unspec[i][Coords][0], Unspec[i][Coords][1], Unspec[i][Coords][2], 10.0, -1, -1, -1, -1, -1, -1);
SpawnPlayer(i);
SetCameraBehindPlayer(i);
}
else
{
SpawnPlayer(i);
}
Spectate[i] = 255;
}
und so sieht das public dazu aus:
public SetPlayerToTeamColor(playerid)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] == 0)
SetPlayerColor(playerid,COLOR_WHITE);
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
SetPlayerColor(playerid,0x0000FFFF);
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
SetPlayerColor(playerid,0x0000FFFF);
if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
SetPlayerColor(playerid,COLOR_BBLUE);
if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)
SetPlayerColor(playerid,0xFFD700FF);
if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)
SetPlayerColor(playerid,COLOR_PINK);
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
SetPlayerColor(playerid,0x0000FFFF);
if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
SetPlayerColor(playerid,0xFF9B9BFF);
if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
SetPlayerColor(playerid,0xFF7F00FF);
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
SetPlayerColor(playerid,0x33AA33AA);
if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
SetPlayerColor(playerid,0x9ACD32FF);
if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
SetPlayerColor(playerid,0x8E2323FF);
if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)
SetPlayerColor(playerid,0xEFC6FFFF);
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
SetPlayerColor(playerid,0xFFFF00FF);
if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)
SetPlayerColor(playerid,0x00F5FFFF);
if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)
SetPlayerColor(playerid,0xBFEFFFFF);
}
}
wo liegt mein Fehler ? (und ja ist GF )