Get color
#15

Quote:
Originally Posted by BenzoAMG
View Post
pawn Code:
SetPlayerColor(playerid, GetPlayerColor(playerid) & (0xFFFFFFFF));
This would do the opposite and make the alpha values 'FF', hence your marker being full color and no transparency again. Like a /visible command.
This is incorrect. This will merely return the current color. Let's say the alpha is 0x99 (binary: 10011001) and you AND it with 0xFF (binary: 11111111):
Code:
10011001
&
11111111
---------
10011001
The output will only have the bits that are set (1) in BOTH operands.

To make the color fully visible you could OR with 0xFF (fully: 0x000000FF) instead (note: NOT 0xFFFFFFFF);

Code:
10011001
|
11111111
---------
11111111
The output will have the bits that are set (1) in EITHER operand.
Reply


Messages In This Thread
Get color - by audriuxxx - 26.05.2014, 14:36
Re: Get color - by Riddick94 - 26.05.2014, 14:42
Re: Get color - by Rittik - 26.05.2014, 14:42
Re: Get color - by Riddick94 - 26.05.2014, 14:44
Re: Get color - by audriuxxx - 26.05.2014, 15:14
Re: Get color - by Riddick94 - 26.05.2014, 15:16
Re: Get color - by iFarbod - 26.05.2014, 15:20
Re: Get color - by audriuxxx - 26.05.2014, 15:38
Re: Get color - by Riddick94 - 26.05.2014, 15:48
Re: Get color - by audriuxxx - 26.05.2014, 15:53
Re: Get color - by Konstantinos - 26.05.2014, 16:02
Re: Get color - by audriuxxx - 27.05.2014, 12:31
Re: Get color - by Threshold - 27.05.2014, 13:37
Re: Get color - by audriuxxx - 28.05.2014, 11:32
Re: Get color - by Vince - 28.05.2014, 11:40
Re: Get color - by audriuxxx - 28.05.2014, 11:51
Re: Get color - by RajatPawar - 28.05.2014, 11:52
Re: Get color - by audriuxxx - 28.05.2014, 11:54
Re: Get color - by RajatPawar - 28.05.2014, 11:56
Re: Get color - by audriuxxx - 28.05.2014, 12:07
Re: Get color - by audriuxxx - 28.05.2014, 12:31
Re: Get color - by Threshold - 28.05.2014, 13:03
Re: Get color - by audriuxxx - 28.05.2014, 13:10

Forum Jump:


Users browsing this thread: 1 Guest(s)