rBits and y_bit
#1

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.
Reply
#2

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
Reply
#3

Thanks Nero_3D, I did not notice that topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)