Addding vehicle component crashing player when connecting o_O
#2

maybe because the component models are beginning from 1000 to 1193, you have from 0 to 16 this can crash it...

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;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)