08.09.2009, 14:54
maybe because the component models are beginning from 1000 to 1193, you have from 0 to 16 this can crash it...
Try this
Try this
Код:
public CreateVehicleFromSQL(uid) { LoadCarTemp(uid); new pointer = CreateVehicle(TempCar[carModel], TempCar[carLocX], TempCar[carLocY], TempCar[carLocZ], TempCar[carAngle], TempCar[carColor1], TempCar[carColor2], -1); TempToVeh(pointer); for(new tune = 0; tune < 16; tune++) { if(Cars[pointer][carTuning][tune] != 0) { AddVehicleComponent(pointer, 1000+Cars[pointer][carTuning][tune]); } } return pointer; }