SA-MP Forums Archive
Creating/Destroying vehicle, quick question - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Creating/Destroying vehicle, quick question (/showthread.php?tid=332942)



Creating/Destroying vehicle, quick question - HondaCBR - 09.04.2012

Lets say I used this to create a vehicle:
pawn Код:
CarFrakcja1[FacCar2] = CreateVehicle(dini_Int(CarFile,"ModelID"),dini_Float(CarFile,"X"),dini_Float(CarFile,"Y"),dini_Float(CarFile,"Z"),dini_Float(CarFile,"A"),dini_Int(CarFile,"Color1"),dini_Int(CarFile,"Color2"),-1);
Without destroying this vehicle, Can I reasign CarFrakcja1[FacCar2] to become for example CarFrakcja2[FacCar2] ?


Re: Creating/Destroying vehicle, quick question - ViniBorn - 09.04.2012

CarFrakcja1 [FacCar2] is related to a number.

pawn Код:
CarFrakcja1[FacCar2] = CarFrakcja2[FacCar2];



Re: Creating/Destroying vehicle, quick question - WarriorEd22 - 09.04.2012

This is what you need:

https://sampforum.blast.hk/showthread.php?tid=332676