rBits and y_bit - 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: rBits and y_bit (
/showthread.php?tid=584350)
rBits and y_bit -
goldspy98 - 04.08.2015
Hi there, recently I decided to take a look on ******'s scripts (which became harder since he removed their topics) and I found y_bit, currently I don't know what exactly does y_bit do and I am not able to find any tutorial related to it, so I would like to know if rBits and y_bit do the same or have different objectives, also if someone there have a tutoral for y_bit I would appreciate, thanks in advance.
AW: rBits and y_bit -
Nero_3D - 04.08.2015
Found that for y_bits, y_bits only works for 1bit values like boolean variables
https://sampforum.blast.hk/showthread.php?tid=489897
rBits is slower than y_bits because it uses functions instead of macros
But I think if you want to use 2,4,8 or 16 bit variables you should use functions
The advantage of macros would be if you use constants but that is only mostly given with 1bit
Conclusion, for 1bit variables I would use y_bits otherwise rbits
Re: rBits and y_bit -
goldspy98 - 04.08.2015
Thanks Nero_3D, I did not notice that topic.