Код:
Trucks[1] = AddStaticVehicle(578,2198.3179,-2194.0198,14.1766,243.6298,1,1); // Truck 1
Trucks[2] = AddStaticVehicle(578,2193.9966,-2197.4185,14.1706,243.8403,1,1); // Truck 2
Trucks[3] = AddStaticVehicle(578,2188.9004,-2200.6323,14.1719,242.7414,1,1); // Truck 3
Trucks[4] = AddStaticVehicle(578,2184.6450,-2203.9783,14.1715,244.1241,1,1); // Truck 4
Trucks[5] = AddStaticVehicle(578,2181.1438,-2207.5818,14.1709,244.3222,1,1); // Truck 5
Trucks[6] = AddStaticVehicle(578,2178.9114,-2212.5889,14.1722,243.4818,1,1); // Truck 6
Trucks[7] = AddStaticVehicle(578,2175.2036,-2216.0984,14.1467,242.5192,1,1); // Truck 7
Trucks[8] = AddStaticVehicle(578,2171.1655,-2219.8000,14.0882,244.5908,1,1); // Truck 8
Trucks[9] = AddStaticVehicle(578,2168.1248,-2223.4119,14.0358,243.9353,1,1); // Truck 9
for(new id = 0; id < 10; id++)
{
VehicleInfo[Trucks[ID]][vFuel] = 100;
VehicleInfo[Trucks[ID]][vWindows] = 0;
SetVehicleParamsEx(Trucks[id], 0, 0, 0, 0, 0, 0, 0);
Containers[id] = CreateObject(3571, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
//AttachObjectToVehicle(Containers[id], Trucks[id], -0.01, -1.75, 1.00, 0.00, 0.00, 90.00);
}
/* --
pawn is case sensitive. you defined 'id' then use that.