Hallo liebe Community,
leider habe ich "nervende" 5 Warnings im Script.
Wäre wirklich nett falls ihr mir helfen würdet
Warnings sowie pwn stehen drunter!
"warning 213: tag mismatch"
if(FirstSpawnAfterLogin[playerid] == 1){
if(PlayerInfo[playerid][pWantedLevel] > 0){
new string[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
for(new i = 0; i < MAX_PLAYERS; i++){
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_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID, 1);
}}}}
FirstSpawnAfterLogin[playerid] = 0;
return 1;
}
"warning 213: tag mismatch"
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_KNALLROT, 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_KNALLROT, 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;
}
warning 213: tag mismatch
OnDuty[playerid] = 1;
format(string, sizeof(string), "* Officer %s nimmt seine Waffe und Marke.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerSkin(playerid, PlayerInfo[playerid][pOnDutySkin]);
//SetPlayerColor(playerid,COLOR_BLUE);
for(new i = 0; i < MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && PlayerInfo[i][pWantedLevel] > 0 && Maske[i] == 0){
GetPlayerName(i, playername, sizeof(playername));
format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,i, PlayerInfo[i][pWantedLevel], PlayerCrime[i][pAccusedof],Float:PlayerInfo[i][psKills]/Float:PlayerInfo[i][pConnectTime]);
WantedLabel[i][playerid] = CreatePlayer3DTextLabel(playerid, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, i, INVALID_VEHICLE_ID,1);
}
}
}
Edit: Behobene Warning deleted