SA-MP Forums Archive
<< and >> meaning? - 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: << and >> meaning? (/showthread.php?tid=405672)



<< and >> meaning? - DarkPower - 07.01.2013

example:

pawn Код:
new  
     var = random(500);
return (var << 16);
What that << 16 does?


Re: << and >> meaning? - Mauzen - 07.01.2013

Thats the bitshift operator. This tutorial explains it very detailled: https://sampforum.blast.hk/showthread.php?tid=177523


Re: << and >> meaning? - DarkPower - 07.01.2013

Thank you