[Tutorial] SetObjectMaterial Help
#18

Please, you guys are mixing up colours.

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;
}
Reply


Messages In This Thread
SetObjectMaterial Help - by Drebin - 05.04.2012, 00:11
Re: SetObjectMaterial Help - by steki. - 05.04.2012, 00:15
AW: Re: SetObjectMaterial Help - by Drebin - 05.04.2012, 00:16
Re: SetObjectMaterial Help - by CJoao - 05.04.2012, 00:19
Re: SetObjectMaterial Help - by Luis- - 05.04.2012, 00:24
AW: Re: SetObjectMaterial Help - by Drebin - 05.04.2012, 00:31
Re: SetObjectMaterial Help - by Luis- - 05.04.2012, 00:35
Re: SetObjectMaterial Help - by Kar - 05.04.2012, 00:39
AW: SetObjectMaterial Help - by Drebin - 05.04.2012, 00:42
Re: SetObjectMaterial Help - by Luis- - 05.04.2012, 00:49
AW: SetObjectMaterial Help - by Drebin - 05.04.2012, 01:30
Re: SetObjectMaterial Help - by Kar - 05.04.2012, 02:45
Re: SetObjectMaterial Help - by Psymetrix - 05.04.2012, 04:46
Re: SetObjectMaterial Help - by Libra_PL - 05.04.2012, 09:28
AW: SetObjectMaterial Help - by C0dy09 - 05.04.2012, 14:28
AW: SetObjectMaterial Help - by Drebin - 05.04.2012, 14:45
AW: SetObjectMaterial Help - by C0dy09 - 05.04.2012, 16:24
Re: SetObjectMaterial Help - by Kar - 05.04.2012, 18:38
Re: SetObjectMaterial Help - by Gireada - 07.04.2012, 15:21
Re: SetObjectMaterial Help - by Dude_Lebowski - 12.06.2012, 12:52
Re: SetObjectMaterial Help - by Niko_boy - 12.06.2012, 13:05
Re: SetObjectMaterial Help - by Jonny5 - 12.06.2012, 15:52
Re: SetObjectMaterial Help - by newbienoob - 12.06.2012, 17:58
Re: SetObjectMaterial Help - by Jonny5 - 12.06.2012, 18:49
Re: SetObjectMaterial Help - by newbienoob - 12.06.2012, 19:10
Re: SetObjectMaterial Help - by Don Lidner - 15.06.2012, 21:16
Re: SetObjectMaterial Help - by Kindred - 15.06.2012, 21:24
Re: SetObjectMaterial Help - by Karkand - 18.08.2012, 04:08
Re: SetObjectMaterial Help - by IceMeteor - 24.08.2012, 07:08
Re: SetObjectMaterial Help - by Augis123 - 08.09.2013, 19:08
Re: SetObjectMaterial Help - by Augis123 - 10.09.2013, 11:50
Re: SetObjectMaterial Help - by iLuXing - 28.12.2014, 11:47
Re: SetObjectMaterial Help - by MonSterLikeHD - 23.04.2016, 16:37

Forum Jump:


Users browsing this thread: 1 Guest(s)