02.01.2015, 13:44
I need help.
and its not working,it spawn 3 cars but it wont destroy none of them
if i do
it works,spawn 3 cars and destroy them
what i did worng with new Car[3];
PHP код:
new Car[3];
*I createing 3 cars for event
Car[0] = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
Car[1] = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
Car[2] = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
and when the event is over i want to Destroy them
DestroyVehicle(Car[0]);
DestroyVehicle(Car[1]);
DestroyVehicle(Car[2]);
if i do
PHP код:
new Car1;
new Car2;
new Car3;
Car1 = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
Car2 = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
Car3 = CreateVehicle(580,2131.9092,1715.0366,10.4514,55.6515,106,122); //
DestroyVehicle(Car1);
DestroyVehicle(Car2);
DestroyVehicle(Car3);
what i did worng with new Car[3];