13.04.2012, 18:39
Quote:
Зачем записывать id каждого транспорта в собственный массив? Достаточно иметь массив на 2 ячейки и записывать туда первый и последний id транспорта.
|
PHP Code:
new lvpdcar[2];
lvpdcar[0] = AddStaticVehicleEx(598,2268.9678,2443.6958,10.5668,359.5409,44,1,900);
AddStaticVehicleEx(598,2273.5706,2443.7290,10.5665,0.6987,44,1,900);
AddStaticVehicleEx(598,2277.9482,2443.7490,10.5654,359.8027,44,1,900);
AddStaticVehicleEx(598,2282.1309,2443.7957,10.5660,359.7104,44,1,900);
AddStaticVehicleEx(598,2282.5002,2476.4595,10.5663,181.3129,44,1,900);
AddStaticVehicleEx(598,2277.6665,2476.5178,10.5670,180.8092,44,1,900);
AddStaticVehicleEx(598,2273.6030,2476.5684,10.5669,180.3357,44,1,900);
AddStaticVehicleEx(598,2268.8853,2476.6331,10.5663,179.7468,44,1,900);
AddStaticVehicleEx(598,2269.2004,2459.8330,10.5683,0.1298,44,1,900);
AddStaticVehicleEx(598,2273.3623,2459.5422,10.5661,178.7547,44,1,900);
AddStaticVehicleEx(598,2278.0513,2459.7075,10.5667,359.0662,44,1,900);
AddStaticVehicleEx(598,2281.9307,2459.4504,10.5672,180.7914,44,1,900);
AddStaticVehicleEx(599,2290.6970,2443.7861,11.0110,1.2899,44,1,900);
AddStaticVehicleEx(599,2260.5859,2476.3032,11.0123,180.0692,44,1,900);
lvpdcar[1] = AddStaticVehicleEx(497,2271.4736,2470.6799,38.8604,0.0013,44,1,900);