View Single Post
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 07-11-2014 , 14:09   Re: AMXX Lottery (Plugin/API)
Reply With Quote #22

Quote:
Originally Posted by KliPPy View Post
Great job now! I'm pretty sure if everything works how it should, your plugin will be approved.
By the way, I've done Serbian translation in Translation thread, take a look at that.
And, you should make macros for bitsum operations, like these ones:
PHP Code:
g_bParticipate &= ~(1<<id-1);
g_bConfirmed &= ~(1<<id-1);
g_bDontAsk &= ~(1<<id-1); 
Here I got some, but you could easily find multiple of these on the forum already.
PHP Code:
#define set_bit(%1,%2)    (%1 |= (1 << (%2 & 31)))
#define clr_bit(%1,%2)    (%1 &= ~(1 << (%2 & 31)))
#define get_bit(%1,%2)    !!(%1 & (1 << (%2 & 31))) 
Thank you for your translation! I will add macros in the next version.

Quote:
Originally Posted by Neeeeeeeeeel.- View Post
You should attach the include file in the main post.
I think doing that may confuse some people, and since the include is not necessary if you're not using the API, I see pointless to attach it to the main post.
Mario AR. is offline