30.09.2010, 18:22
you sure it is made by you?...
heres a code that i found on my server
i know its slower and all but it calculates the same method as you so...
heres a code that i found on my server
pawn Код:
stock
RGB(red, green, blue, alpha)
{
/* Combines a color and returns it, so it can be used in functions.
@red: Amount of red color.
@green: Amount of green color.
@blue: Amount of blue color.
@alpha: Amount of alpha transparency.
-Returns:
A integer with the combined color.
*/
return (red * 16777216) + (green * 65536) + (blue * 256) + alpha;
}