SA-MP Forums Archive
Vehicle colour problem - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Vehicle colour problem (/showthread.php?tid=131488)



Vehicle colour problem - Andy_McKinley - 03.03.2010

This is my script and it ain't working

pawn Код:
new Car = AddStaticVehicle(411, -1989.1124267578, 275.22570800781, 34.979354858398, 89.75830078125, -1, -1);

             ChangeVehicleColor(411, 1, 1);
       
       AddStaticVehicle(411, -1989.4748535156, 270.34594726563, 34.979354858398, 89.75830078125, -1, -1);

             ChangeVehicleColor(411, 1, 1);
       
             AddStaticVehicle(415, -1989.5379638672, 265.61108398438, 35.028877258301, 85.684814453125, -1, -1);

             ChangeVehicleColor(415, 1, 1);
             
           AddStaticVehicle(558, -1990.2591552734, 261.15313720703, 34.883148193359, 87.69970703125, -1, -1);

             ChangeVehicleColor(558, 1, 1);
           
             AddStaticVehicle(439, -1990.6604003906, 257.396484375, 35.171875, 89.729858398438, -1, -1);

             ChangeVehicleColor(439, 1, 1);
             
       AddStaticVehicle(439, -1990.6623535156, 253.12446594238, 35.171875, 89.725341796875, -1, -1);

             ChangeVehicleColor(439, 1, 1);
       
       AddStaticVehicle(439, -1990.8983154297, 248.93988037109, 35.171875, 89.725341796875, -1, -1);

             ChangeVehicleColor(439, 1, 1);
       
       AddStaticVehicle(560, -1991.2308349609, 245.41848754883, 34.976848602295, 83.77490234375, -1, -1);

             ChangeVehicleColor(560, 1, 1);
       
       AddStaticVehicle(560, -1991.5975341797, 241.42695617676, 34.976848602295, 83.770751953125, -1, -1);

             ChangeVehicleColor(560, 1, 1);



Re: Vehicle colour problem - Correlli - 03.03.2010

ChangeVehicleColor function requires vehicle-ID parameter, not model-ID.


Re: Vehicle colour problem - Torran - 03.03.2010

One question? Why do you create the vehicle and then change the vehicles colour,
Why not change the colour when adding the vehicle


Re: Vehicle colour problem - Andy_McKinley - 03.03.2010

Quote:
Originally Posted by Torran
One question? Why do you create the vehicle and then change the vehicles colour,
Why not change the colour when adding the vehicle
I did, but someone in my old topic told me to do that.
http://forum.sa-mp.com/index.php?topic=156576.0


Re: Vehicle colour problem - Correlli - 03.03.2010

Quote:
Originally Posted by Andy McKinley
I did, but someone in my old topic told me to do that.
http://forum.sa-mp.com/index.php?topic=156576.0
He told you the same thing as i did:
Quote:
Originally Posted by Don Correlli
ChangeVehicleColor function requires vehicle-ID parameter, not model-ID.



Re: Vehicle colour problem - Andy_McKinley - 03.03.2010

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Andy McKinley
I did, but someone in my old topic told me to do that.
http://forum.sa-mp.com/index.php?topic=156576.0
He told you the same thing as i did:
Quote:
Originally Posted by Don Correlli
ChangeVehicleColor function requires vehicle-ID parameter, not model-ID.
I thought he gave me the script... I should've look better!
But how does it look like?