/park command saving problem?
#2

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;
}
Try this ^^
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
Reply


Messages In This Thread
/park command saving problem? - by Mr. Despair - 20.08.2010, 20:34
Re: /park command saving problem? - by Claude - 20.08.2010, 20:53

Forum Jump:


Users browsing this thread: 2 Guest(s)