Hallo Leutz,
Ich hab die Frage, ob dies so richtig wäre? oder muss man noch was hinzufügen ..
public OnPlayerUpdate(playerid)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER){
new veh = GetPlayerVehicleID(playerid);
sCarInfo[veh][CarKM]+=GetVehicleDistanceFromPoint(GetPlayerVehicleID(playerid), sCarInfo[veh][vLastX],sCarInfo[veh][vLastY],sCarInfo[veh][vLastZ]);
GetVehiclePos(veh,sCarInfo[veh][vLastX],sCarInfo[veh][vLastY],sCarInfo[veh][vLastZ]);
}
return 1;
}