SA-MP Forums Archive
SetPlayerAttachedObject color 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)
+--- Thread: SetPlayerAttachedObject color problem (/showthread.php?tid=519016)



SetPlayerAttachedObject color problem - carl0o0s - 12.06.2014

#define RedColor 0xFF0000FF
#define YellowColor 0xFFFF00FF


SetPlayerAttachedObject(playerid, 3, 19487, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1,RedColor );// will show blue
SetPlayerAttachedObject(playerid, 3, 19487, 2, 0.101, -0.0, 0.0, 5.50, 84.60, 83.7, 1, 1, 1,YellowColor );// will show pink

when i use it in-game the hat color (RedColor) will paint the hat, Blue
and YellowColor will be Pink !




AW: SetPlayerAttachedObject color problem - BiosMarcel - 12.06.2014

Cause the code at 'Red' isnt the code for red and the same mistake at 'Yellow'

#define Red 0xFFFF0000
#define Yellow 0xFFFFFF00


Re: SetPlayerAttachedObject color problem - carl0o0s - 12.06.2014

so where i get the correct hex colors for red and yellow ! i used many color pickers and they are gave the same result for red and yellow

RedColor 0xFF0000FF

YellowColor 0xFFFF00FF


AW: SetPlayerAttachedObject color problem - BiosMarcel - 12.06.2014

so i picked the wrong ones?


Re: SetPlayerAttachedObject color problem - carl0o0s - 12.06.2014

it FIXED thank you , but how you got the correct hex colors , can you explain plz i want to define many colors


AW: SetPlayerAttachedObject color problem - BiosMarcel - 12.06.2014

http://www.gtavision.com/index.php?s...wnload&id=1974


Re: SetPlayerAttachedObject color problem - Pottus - 12.06.2014

Coloring attached object usually results in a blending of the colors there is really no way to know except for trial and error to find the color you want.


Re: SetPlayerAttachedObject color problem - Threshold - 12.06.2014

I thought it might have had something to do with the AARRGGBB format as opposed to the RRGGBBAA format.
0000FF is blue.