Hallo Community
ich habe 2 Warning´s und weis nicht was da falsch ist
Code
C:\Users\Paddy\Desktop\German of Life 7777\gamemodes\Live-your-Life.pwn(71367) : warning 213: tag mismatch
C:\Users\Paddy\Desktop\German of Life 7777\gamemodes\Live-your-Life.pwn(71423) : warning 213: tag mismatch
hier die codes
Code
Function OnPlayerCarUpdate2(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new x = 0; x < MaxVeh; x++)
{
if(Dtc_PlayerHaveCar[playerid][x])
{
Dtc_Carlock[PlayerCar[playerid][x][CarId]] = 1;
Dtc_LockCar(PlayerCar[playerid][x][CarId]);
new string3[128];
new playername3[MAX_PLAYER_NAME];
new Float:health;
GetVehicleHealth(PlayerCar[playerid][x][CarId],health);
PlayerCar[playerid][x][CarHeal] = health;// Zeile 71367
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "/Privatcars/%s%d.dtcar", playername3,x);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[32];
format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][x][CarPos_x]);fwrite(hFile, var);
format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][x][CarPos_y]);fwrite(hFile, var);
format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][x][CarPos_z]);fwrite(hFile, var);
format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][CarRotate]);fwrite(hFile, var);
format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
format(var, 32, "Gesperrt=%d\n",PlayerCar[playerid][x][CarGesperrt]);fwrite(hFile, var);
format(var, 32, "Gesperrtpreis=%d\n",PlayerCar[playerid][x][CarSperrpreis]);fwrite(hFile, var);
format(var, 32, "Kennzeichen=%s\n",PlayerCar[playerid][x][CarNumber]);fwrite(hFile, var);
format(var, 32, "CarPlaten=%d\n",PlayerCar[playerid][x][CarPlaten]);fwrite(hFile, var);
format(var, 32, "Kralle=%d\n",PlayerCar[playerid][x][Kralle]);fwrite(hFile, var);
format(var, 32, "Motorschaden=%d\n",PlayerCar[playerid][x][CarMotorschaden]);fwrite(hFile, var);
format(var, 32, "CarTankart=%d\n",PlayerCar[playerid][x][CarTankart]);fwrite(hFile, var);
format(var, 32, "Neon=%d\n",PlayerCar[playerid][x][Neon]);fwrite(hFile, var);
format(var, 32, "CarHeal=%d\n",PlayerCar[playerid][x][CarHeal]);fwrite(hFile, var);
fclose(hFile);
}
}
}
}
}
Function OnPlayerCarUpdate(playerid)
{
if(IsPlayerConnected(playerid))
{
for(new x = 0; x < MaxVeh; x++)
{
if(Dtc_PlayerHaveCar[playerid][x])
{
Motorschaden[PlayerCar[playerid][x][CarId]] = 0;
new Float:health;
GetVehicleHealth(PlayerCar[playerid][x][CarId],health);
PlayerCar[playerid][x][CarHeal] = health;// Zeile 71423
DestroyVehicle(PlayerCar[playerid][x][CarId]);
Dtc_Carlock[PlayerCar[playerid][x][CarId]] = 0;
Dtc_LockCar(PlayerCar[playerid][x][CarId]);
new string3[128];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "/Privatcars/%s%d.dtcar", playername3,x);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[32];
format(var, 32, "CarId=%d\n",PlayerCar[playerid][x][CarId]);fwrite(hFile, var);
format(var, 32, "CarModel=%d\n",PlayerCar[playerid][x][CarModel]);fwrite(hFile, var);
format(var, 32, "CarPos_x=%.3f\n",PlayerCar[playerid][x][CarPos_x]);fwrite(hFile, var);
format(var, 32, "CarPos_y=%.3f\n",PlayerCar[playerid][x][CarPos_y]);fwrite(hFile, var);
format(var, 32, "CarPos_z=%.3f\n",PlayerCar[playerid][x][CarPos_z]);fwrite(hFile, var);
format(var, 32, "CarRotate=%.3f\n",PlayerCar[playerid][x][CarRotate]);fwrite(hFile, var);
format(var, 32, "CarNitro=%d\n",PlayerCar[playerid][x][CarNitro]);fwrite(hFile, var);
format(var, 32, "CarHyd=%d\n",PlayerCar[playerid][x][CarHyd]);fwrite(hFile, var);
format(var, 32, "CarWheel=%d\n",PlayerCar[playerid][x][CarWheel]);fwrite(hFile, var);
format(var, 32, "CarAusp=%d\n",PlayerCar[playerid][x][CarAusp]);fwrite(hFile, var);
format(var, 32, "CarSideL=%d\n",PlayerCar[playerid][x][CarSideL]);fwrite(hFile, var);
format(var, 32, "CarSideR=%d\n",PlayerCar[playerid][x][CarSideR]);fwrite(hFile, var);
format(var, 32, "CarFB=%d\n",PlayerCar[playerid][x][CarFB]);fwrite(hFile, var);
format(var, 32, "CarRB=%d\n",PlayerCar[playerid][x][CarRB]);fwrite(hFile, var);
format(var, 32, "CarSpoiler=%d\n",PlayerCar[playerid][x][CarSpoiler]);fwrite(hFile, var);
format(var, 32, "CarRoof=%d\n",PlayerCar[playerid][x][CarRoof]);fwrite(hFile, var);
format(var, 32, "CarHood=%d\n",PlayerCar[playerid][x][CarHood]);fwrite(hFile, var);
format(var, 32, "CarVents=%d\n",PlayerCar[playerid][x][CarVents]);fwrite(hFile, var);
format(var, 32, "CarLamps=%d\n",PlayerCar[playerid][x][CarLamps]);fwrite(hFile, var);
format(var, 32, "CarPJ=%d\n",PlayerCar[playerid][x][CarPJ]);fwrite(hFile, var);
format(var, 32, "CarC1=%d\n",PlayerCar[playerid][x][CarC1]);fwrite(hFile, var);
format(var, 32, "CarC2=%d\n",PlayerCar[playerid][x][CarC2]);fwrite(hFile, var);
format(var, 32, "Gesperrt=%d\n",PlayerCar[playerid][x][CarGesperrt]);fwrite(hFile, var);
format(var, 32, "Gesperrtpreis=%d\n",PlayerCar[playerid][x][CarSperrpreis]);fwrite(hFile, var);
format(var, 32, "Kennzeichen=%s\n",PlayerCar[playerid][x][CarNumber]);fwrite(hFile, var);
format(var, 32, "CarPlaten=%d\n",PlayerCar[playerid][x][CarPlaten]);fwrite(hFile, var);
format(var, 32, "Kralle=%d\n",PlayerCar[playerid][x][Kralle]);fwrite(hFile, var);
format(var, 32, "Motorschaden=%d\n",PlayerCar[playerid][x][CarMotorschaden]);fwrite(hFile, var);
format(var, 32, "CarTankart=%d\n",PlayerCar[playerid][x][CarTankart]);fwrite(hFile, var);
format(var, 32, "Neon=%d\n",PlayerCar[playerid][x][Neon]);fwrite(hFile, var);
format(var, 32, "CarHeal=%d\n",PlayerCar[playerid][x][CarHeal]);fwrite(hFile, var);
fclose(hFile);
}
}
}
}
}
Alles anzeigen