vehicle colors - 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: vehicle colors (
/showthread.php?tid=280915)
vehicle colors -
Gh0sT_ - 03.09.2011
OK, this is going to be very annoyning. I dont know, maybe it was reported some time ago, but lets dont mind, because I dont find any threads about this.
So, about the bug:
Lets create a vehicle, with colors '2, 2'. Everything is FINE. Lets change our interior, then get back to 0. TADAAA, vehicle color is now random instead of 2, 2.
Any ideas to fix it? Im sure its not my script mistake.
Re: vehicle colors -
uprp - 03.09.2011
same
Re: vehicle colors -
dugi - 03.09.2011
If you create vehicle with colours different than random (-1,-1) the colour will NOT change when a vehicle re-streams. Otherwise the colours will change on every OnVehicleStreamIn.
Re: vehicle colors -
Gh0sT_ - 03.09.2011
Quote:
Originally Posted by dugi
If you create vehicle with colours different than random (-1,-1) the colour will NOT change when a vehicle re-streams. Otherwise the colours will change on every OnVehicleStreamIn.
|
So, I must create vehicle with colors -1 -1, and the colors will not change? Otherwise, when I create vehicle, I need to store vehicle color into a variable, and then change vehicle color in OnVehicleStreamIn?
Re: vehicle colors -
Kar - 03.09.2011
Quote:
Originally Posted by Gh0sT_
So, I must create vehicle with colors -1 -1, and the colors will not change? Otherwise, when I create vehicle, I need to store vehicle color into a variable, and then change vehicle color in OnVehicleStreamIn?
|
NO create vehicles with colours that are
NOT -1 and the colour will
NOT change
Edit:
if you create vehicles with colours -1, the colour will change for the client under every onvehiclestreamin
if you create vehicles with colours that are 0 and more, the colour will not change
Re: vehicle colors -
Gh0sT_ - 03.09.2011
Quote:
Originally Posted by Kar
NO create vehicles with colours that are NOT -1 and the colour will NOT change
|
Please, make the font size more big, I cant see anything