What program i need for create includes?
#1

I need to create include for rBits, only find it with pastebin on ******, please help!.


PHP код:
/*
        SA-MP "rBits" Include
        Copyright © 2011 RyDeR`
*/
 
#if defined _Included_rBits
        #endinput
#endif
 
#define _Included_rBits
 
#define BIT_TAGS \
        
Bit1Bit2Bit4Bit8Bit16 }
       
enum e_Bits
{
        
Bit1,
        
Bit2,
        
Bit4,
        
Bit8,
        
Bit16,
        
Bit32
};
 
#define Bit1:%0<%1> \
        
Bit1: %0[((%1) + 31) >>> _Bit32]
       
#define Bit1_Set(%0,%1,%2) \
        
Bit_Set(%0, (%1), (%2), Bit1)
       
#define Bit1_Get(%0,%1) \
        
Bit_Get(%0, (%1), Bit1)
 
#define Bit2:%0<%1> \
        
Bit2: %0[((%1) + 15) >>> _: (Bit32 Bit2)]
       
#define Bit2_Set(%0,%1,%2) \
        
Bit_Set(%0, (%1), (%2), Bit2)
       
#define Bit2_Get(%0,%1) \
        
Bit_Get(%0, (%1), Bit2)
 
#define Bit4:%0<%1> \
        
Bit4: %0[((%1) + 7) >>> _: (Bit32 Bit4)]
       
#define Bit4_Set(%0,%1,%2) \
        
Bit_Set(%0, (%1), (%2), Bit4)
       
#define Bit4_Get(%0,%1) \
        
Bit_Get(%0, (%1), Bit4)
 
#define Bit8:%0<%1> \
        
Bit8: %0[(%1char]
       
#define Bit8_Set(%0,%1,%2) \
        
(_: %0{(%1)} = (%2))
       
#define Bit8_Get(%0,%1) \
        
(_: %0{(%1)})
 
#define Bit16:%0<%1> \
        
Bit16: %0[((%1) + 1) >>> _: (Bit32 Bit16)]
       
#define Bit16_Set(%0,%1,%2) \
        
Bit_Set(%0, (%1), (%2), Bit16)
       
#define Bit16_Get(%0,%1) \
        
Bit_Get(%0, (%1), Bit16)
 
 
#if defined Bit_Set && defined Bit_Vet
        
stock Bit_Set_Hook({Bit1Bit2Bit4Bit8Bit16Bit}:bitArr[], arrIdx, {_bool}:value 0e_Bits:bitShift Bit1arrSize sizeof(bitArr), arrTag tagof(bitArr))
        {
                if (
arrTag == tagof(Bit:))
                        return 
Bit_Set(bitArrarrIdxbool:value);
               
                
#define Bit_Set Bit_Set_Hook
#else
        
stock Bit_Set(BIT_TAGSbitArr[], arrIdxvaluee_BitsbitShiftarrSize sizeof(bitArr))
        {
#endif
                
new
                        
bitVar = ((arrIdx & ((<< _: (Bit32 bitShift)) - 1)) << _bitShift),
                        
bitLim = ((<< (<< _bitShift)) - 1)
                ;
                if(!(
<= (arrIdx >>>= _: (Bit32 bitShift)) < arrSize))
                        return 
0;
       
                (
_bitArr[arrIdx]) &= ~(bitLim << bitVar);
                (
_bitArr[arrIdx]) |= ((bitLim value) << bitVar);
       
                return 
1;
        }
 
#if defined Bit_Get && defined Bit_Vet
        
stock Bit_Get_Hook({Bit1Bit2Bit4Bit8Bit16Bit}:bitArr[], arrIdxe_Bits:bitShift Bit1arrSize sizeof(bitArr), arrTag tagof(bitArr))
        {
                if (
arrTag == tagof(Bit:))
                        return 
_:Bit_GetBit(Bit:bitArr_:arrIdx);
               
                
#undef Bit_Get
                #define Bit_Get Bit_Get_Hook
#else
        
stock Bit_Get(BIT_TAGSbitArr[], arrIdxe_BitsbitShiftarrSize sizeof(bitArr))
        {
#endif
                
new
                        
bitVar = ((arrIdx & ((<< _: (Bit32 bitShift)) - 1)) << _bitShift),
                        
bitLim = ((<< (<< _bitShift)) - 1)
                ;
                if(!(
<= (arrIdx >>>= _: (Bit32 bitShift)) < arrSize))
                        return 
0;
       
                return ((
_bitArr[arrIdx] >>> bitVar) & bitLim);
        } 
Thanks
Reply
#2

http://www.solidfiles.com/d/df353e4858/rBits.inc
Reply
#3

Thanks , how do i create it to a file?.
Reply
#4

Open any text editor, paste that code, close and save, check in to show extensions of known file types, and rename txt to inc
Reply
#5

Either select RAW and save it as .inc file (it sometimes adds some random characters in the first lines) or copy-paste an include file you already got and re-name it, then open it and select all, delete it and paste the new one from the pastebin.
Reply
#6

I cant add the rbits include into the folder in my script!! (, just saying install....

and open the rbits in wordpad (
Reply
#7

What? Just paste the rBits.inc into pawno\include folder and in your script:
pawn Код:
#include <rBits>
That's it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)