[ H3LP ] Bit-fields through native
Hello, I'm trying to pass bit-field through a native and verify if exists. So basically this is what I'm trying but it's not working properly.
Register weapons plugin
Spoiler
Native plugin
Spoiler
|
Re: [ H3LP ] Bit-fields through native
What is the issue? And you will get faster help, from me at least, if you post enough code for me to paste into an IDE and compile. Leaving out variables and functions makes it more time consuming to plug in to get it to compile and troubleshoot.
|
Re: [ H3LP ] Bit-fields through native
Thanks @Bugsy but the problem is in how I initialized the variable.
Code:
:arrow: Code:
Now it's working fine. |
Re: [ H3LP ] Bit-fields through native
If you haven't yet figured out why that is, it's because -1 is "all bits set", where 0 is "none of the bits set".
|
Re: [ H3LP ] Bit-fields through native
Ok, thanks.
|
| All times are GMT -4. The time now is 12:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.