Hey, wenn ich es compile, kommt ein Warning, aber der Befehl geht. Aber es stört mich halt...
Code:
new engine, lights, alarm, doors, bonnet, boot, objective;
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
for(new i; i<MAX_EVENTCAR; i++)
{
if(Eventcar[i][ECID]==GetPlayerVehicleID(playerid))
{
if(Eventcar[i][ECLock]==false) [color=#ff0000]//Warning[/color]
{
Eventcar[i][ECLock]=true;
SetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, false, bonnet, boot, objective);
break;
}
else
{
Eventcar[i][ECLock]=false;
SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine, lights, alarm, true, bonnet, boot, objective);
break;
}
}
}
}
}
Warning:
warning 213: tag mismatch
Wäre nett, wenn ihr helfen könntet.