20.08.2010, 20:53
pawn Код:
new vehicle = GetPlayerVehicle(playerid), Float:vx, Float:vy, Float:vz, Float:vangle, filestr[100];
GetVehiclePos(vehicle, vx, vy, vz);
GetVehicleZAngle(vehicle, vangle);
vehicle = Carlist[playerid][Carid];
vx = Carlist[playerid][X];
vy = Carlist[playerid][Y];
vz = Carlist[playerid][Z];
vangle = Carlist[playerid][Rotation];
public OnVehicleStreamIn(vehicleid, forplayerid)
{
SetVehiclePos(Carlist[playerid][Carid], Carlist[playerid][X], Carlist[playerid][Y], Carlist[playerid][Z]);
SetVehicleZAngle(Carlist[playerid][Carid], Carlist[playerid][Rotation]);
return 1;
}
Basically you forgot to store the new locations into the Carlist, while you used SetVehiclePos(Carlist, etc.. at the command, you should get the position first, not those who are in the file already