13.05.2020, 11:30
Здраствуйте у меня вмоде есть сток CreatVehicles в нём есть вот такой цикл
А само проблема вот здесь:
После этого цикла мод дальше не загружается а до него всё работает если убраю именно
всё работает
Помогите мне пж(
PHP Code:
for(new i = 0; i < sizeof(CarsInfo); i++)
{
if((CarsInfo[i][vParkX] == 0.0 && CarsInfo[i][vParkY] == 0.0 && CarsInfo[i][vParkZ] == 0.0 && CarsInfo[i][vParkAngle] == 0.0) || CarsInfo[i][vOwned] == 0)
{
BuyableCar[i] = CreateVehicle(CarsInfo[i][vModel], CarsInfo[i][vPosX], CarsInfo[i][vPosY], CarsInfo[i][vPosZ], CarsInfo[i][vAngle], -1, -1, -1);
// printf("aa");
}
else //if(CarsInfo[i][vParkX] != 0.0 && CarsInfo[i][vParkY] != 0.0 && CarsInfo[i][vParkZ] != 0.0 && CarsInfo[i][vParkAngle] != 0.0 && CarsInfo[i][vOwned] == 1)
{
BuyableCar[i] = CreateVehicle(CarsInfo[i][vModel], CarsInfo[i][vParkX], CarsInfo[i][vParkY], CarsInfo[i][vParkZ], CarsInfo[i][vParkAngle], CarsInfo[i][vColorOne], CarsInfo[i][vColorTwo], -1);
}
if(CarsInfo[i][vWorld] > 0)
{
LinkVehicleToInterior(BuyableCar[i], 1); // Для гаража
SetVehicleVirtualWorld(BuyableCar[i], CarsInfo[i][vWorld]);
}
else
{
LinkVehicleToInterior(BuyableCar[i], 0);
SetVehicleVirtualWorld(BuyableCar[i], CarsInfo[i][vWorld]);
}
if(CarsInfo[i][vOwned] == 0) CarsInfo[i][vLock] = 0;
gCarLock[i+1] = CarsInfo[i][vLock];
AddVehicleComponent (i+1, CarsInfo[i][vKolesocar]);
AddVehicleComponent (i+1, CarsInfo[i][vNitro]);
AddVehicleComponent (i+1, CarsInfo[i][vGidra]);
ChangeVehiclePaintjob(i+1, CarsInfo[i][vPokraska]);
if (CarsInfo[i][vSpoiler] != 0) AddVehicleComponent (i+1, CarsInfo[i][vSpoiler]);
if (CarsInfo[i][vBamper1] != 0) AddVehicleComponent (i+1, CarsInfo[i][vBamper1]);
if (CarsInfo[i][vBamper2] != 0) AddVehicleComponent (i+1, CarsInfo[i][vBamper2]);
ChangeVehicleColor(i+1, CarsInfo[i][vColorOne], CarsInfo[i][vColorTwo]);
Fuell[i+1] = CarsInfo[i][vFuel];
new vnumber[15];
format(vnumber, sizeof(vnumber), "%s", CarsInfo[i][vNumber]);
SetVehicleNumberPlate(i+1, vnumber);
}
PHP Code:
if((CarsInfo[i][vParkX] == 0.0 && CarsInfo[i][vParkY] == 0.0 && CarsInfo[i][vParkZ] == 0.0 && CarsInfo[i][vParkAngle] == 0.0) || CarsInfo[i][vOwned] == 0)
{
>>>>>>BuyableCar[i] = CreateVehicle(CarsInfo[i][vModel], CarsInfo[i][vPosX], CarsInfo[i][vPosY], CarsInfo[i][vPosZ], CarsInfo[i][vAngle], -1, -1, -1);
// printf("aa");
}
PHP Code:
BuyableCar[i] = CreateVehicle(CarsInfo[i][vModel], CarsInfo[i][vPosX], CarsInfo[i][vPosY], CarsInfo[i][vPosZ], CarsInfo[i][vAngle], -1, -1, -1);
Помогите мне пж(