30.01.2014, 02:33
pawn Код:
stock UpdateGroupVehicleParkPosition(groupvehicleid, Float:newx, Float:newy, Float:newz, Float:newangle, VW, Int)
{
if(GetVehicleModel(DynVehicleInfo[DynVeh[groupvehicleid]][gv_iSQLID] != INVALID_GROUP_ID))
{
new Float:oldx, Float:oldy, Float:oldz;
oldx = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX];
oldy = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY];
oldz = DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ];
if(oldx == newx && oldy == newy && oldz == newz)
{
}
else
{
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fX] = newx;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fY] = newy;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fZ] = newz;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_fRotZ] = newangle;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_iVW] = VW;
DynVehicleInfo[DynVeh[groupvehicleid]][gv_iInt] = Int;
UpdateGroupVehicleMods(DynVeh[groupvehicleid]);
DynVeh_Save(DynVeh[groupvehicleid]);
}
}
return 1
}
Also please add the error lines and point out which lines are which so its easier.