Hallo, habe gerade schon das ganze frum durchforstet jedoch nicht mit meinen Problem fündig geworden.
Das Problem bei mir ist das ich errors bekomme bei WantedLabel Hier erstmal etwas Code
Oben im Script
new WantedLabel[MAX_PLAYERS][MAX_PLAYERS];
forward CreateWantedLabel(playerid);
unter onPlayerconnect hab ich noch
for(new i = 0; i < MAX_PLAYERS; i++)
{
WantedLabel[playerid][i] = -1;
}
Onplayerspawn
if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_RED, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1);
}
public CreateWantedLabel(playerid)
{
if(IsPlayerConnected(playerid))
{
new playername[MAX_PLAYER_NAME],
string[128];
GetPlayerName(playerid, playername, sizeof(playername));
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
if(Maske[playerid] == 0){
if(WantedLabel[playerid][i] == -1){
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_RED, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1);
}
else{
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
UpdatePlayer3DTextLabelText(i, PlayerText3D:WantedLabel[playerid][i], COLOR_RED, string);
}
if(PlayerInfo[playerid][pWantedLevel] == 0){
DeletePlayer3DTextLabel(i, PlayerText3D:WantedLabel[playerid][i]);
WantedLabel[playerid][i] = -1;
}
}
else if(Maske[playerid] == 1){
DeletePlayer3DTextLabel(i, PlayerText3D:WantedLabel[playerid][i]);
WantedLabel[playerid][i] = -1;
}
}
}
}
return 1;
}
Errors Sind
warning 213: tag mismatch
warning 213: tag mismatch
Errors sind die beiden
WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_RED, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1);
Danke schonmal für eure Hilfe