Detaljan opis problema: Dobijam sledeci error "error 025: function heading differs from prototype"
Dio skripte: Ispod
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
public OnUnoccupiedVehicleUpdate(vehicleid, playerid, passenger_seat, Float:new_x, Float:new_y, Float:new_z)
{
if(!passenger_seat && GetVehicleDistanceFromPoint(vehicleid, OldVehiclePos, OldVehiclePos, OldVehiclePos) > 50.0)
{
new Float:Poz;
GetXYZInFrontOfPlayer(playerid, Poz, Poz, Poz, 5.0);
if(GetVehicleDistanceFromPoint(vehicleid, Poz, Poz, Poz) < 7.0 && PI != 23 && PI < 1 && GetVehicleModel(GetPlayerVehicleID(playerid)) != 525)
{
ACWarning(playerid, "Teleport-Vozila");
GetVehiclePos(vehicleid, OldVehiclePos, OldVehiclePos, OldVehiclePos);
return false;
}
}
GetVehiclePos(vehicleid, OldVehiclePos, OldVehiclePos, OldVehiclePos);
return 1;
}