Explain to me this? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Explain to me this? (
/showthread.php?tid=389108)
Explain to me this? -
Azazelo - 31.10.2012
If any one can explain to me what happen in this?
Quote:
encode_lights(light1, light2, light3, light4)
{
return light1 | (light2 << 1) | (light3 << 2) | (light4 << 3);
}
|
And according to this (encode_lights) how will look opposite (decode_lights) ?
If you can explain will be nice.