Quote:
Originally Posted by BenzoAMG
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.