SetPlayerAttachedObject color problem
#1

#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 !

Reply
#2

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

#define Red 0xFFFF0000
#define Yellow 0xFFFFFF00
Reply
#3

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
Reply
#4

so i picked the wrong ones?
Reply
#5

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

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

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.
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)