Weird color bug? - 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: Weird color bug? (
/showthread.php?tid=352164)
Weird color bug? -
Makaveli93 - 18.06.2012
How come, when ever my car gets respawned, it changes color. Also, if I enter an interior and then exit, the car changes color again.
My car colors are saved in the userfile, and they load/save properly, but cars keep changing the color when they stream in/respawn.
Is this a SAMP bug or my fault?
Re: Weird color bug? -
Kindred - 18.06.2012
So, you save it and load it through your server? Does the createobject have the color parameters set to -1?
Not sure, but if it is set to -1, it will always change (if not incorrect). So you should set it to the color instead of coloring it afterwards. Not sure if this is the problem.
Plus, I haven't done anything with vehicles in a while, I have no idea what's wrong, just some questions.
Re: Weird color bug? -
Makaveli93 - 18.06.2012
Thanks, it worked. I set it to respray later, so that was the problem.