Bitwise Shift Operators
Hey, guys, nice to meet you that's my first post here, but anyway let's go directly to the problem: Can someone please explain me a little more "simple" maybe, what those bitwise shift operators are used for?
When I read the pawn tutorial I saw what they do and an example, but I still can't understand what exacly are they and for what I could use them. I am asking for help about this, because I never thought I would need something like this but I seem to see them in use in almost every plugin I see. Generally I ask for help because I see this almost everywhere and I don't understand it: Code:
#define KEYS (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9) |
Re: Bitwise Shift Operators
|
Re: Bitwise Shift Operators
Thanks alot.
|
Re: Bitwise Shift Operators
Imo, that page is poorly written for ppl trying to learn. Bit operators are not unique to AMXX so you can search google or wiki for the operators for help if you do not understand that tut.
|
Re: Bitwise Shift Operators
Quote:
EDIT: After reading it over again, it makes much more sense to me than previously, but this is mainly due to me learning the bitshifts through seeing them used in other plugins. It's still very confusing for beginners. |
Re: Bitwise Shift Operators
I wrote a quite long and newb friendly bit tutorial that I never posted. I will prob touch it up a bit and post it as maybe a beginners bit tut.
|
| All times are GMT -4. The time now is 03:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.