05.04.2012, 18:38
(
Last edited by Kar; 06/04/2012 at 09:36 PM.
)
Please, you guys are mixing up colours.
use this function to convert colours to the object material format.
use this function to convert colours to the object material format.
pawn Code:
stock ShiftRGBAToABGR(&color)
{
new r, g, b, a;
r = (color >>> 24);
g = (color >>> 16 & 0xFF);
b = (color >>> 8 & 0xFF);
a = (color & 0xFF);
color = (a & 0xFF) | ((b & 0xFF) << 8) | ((g & 0xFF) << 16) | (r << 24);
return color;
}