06.01.2011, 13:35
Well, apparently I only tested that with colors like (255, 0, 0, 255) or (255, 255, 255, 255), so I didn't realize that and I'm not that familiar with the byte orders.
I'm not sure if it would be better to use ntohl to convert it from big-endian to the host byte order, but I think most servers running SAMP should be using little-endian (see here), so thanks, I'll change it.
I'm not sure if it would be better to use ntohl to convert it from big-endian to the host byte order, but I think most servers running SAMP should be using little-endian (see here), so thanks, I'll change it.