Ich habe ein Error den ich nicht wegkriege hier der Code:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInVehicle(playerid, examCarPlayer[playerid]) && isInExam[playerid])
{
new Float:health;
GetVehicleHealth(examCarPlayer[playerid], health)
if(health > oldHP && allowHPchange==false) //das ist hier di zeile
{
if(timeChanged)
{
new h,m,s;
gettime(h,m,s); SetPlayerTime(playerid, h, m); timeChanged = false;
}
SendClientMessage(playerid,BLUE,"NICHT CHEATEN!!!");
GameTextForPlayer(playerid, "Du bist Durchgefallen!!!", 10000, 5);
isInExam[playerid]=0; checkpoint[playerid]=0;
for(new i=0; i<3; i++)
{
if(examCar[i][0]==examCarPlayer[playerid])
{
examCar[i][1]=-1;
break;
}
}
SetPlayerWeather(playerid, 1);
RemovePlayerFromVehicle(playerid); SetVehicleToRespawn(examCarPlayer[playerid]);
DisablePlayerCheckpoint(playerid);
examCarPlayer[playerid]=0;
}
else if(allowHPchange) allowHPchange = false;
}
return 1;
}
Compiler
Zeile (334) : Erwartete Zeichen ";", aber gefunden "if"
//edit habs hinbekommen hab vergessen oben drüber ; zu setzen dummer thread