[Include] Bit Functions
#7

Update v1.8.0:


- Added macros:
PHP Code:
GetConfigAddress(itemid);
GetConfigBit(itemid);
GetConfigSize(max_items);
IsToggleConfigInformation(variable,itemid);
ToggleConfigInformation(variable,itemid,value); 
- Example code:
PHP Code:
//vehicle
new ark[GetConfigSize(MAX_VEHICLES)];
for(new 
0MAX_VEHICLESi++){
    
ToggleConfigInformation(ark,i,1);
}

//player
new ExampleConfig[GetConfigSize(MAX_PLAYERS)];

//get:
IsToggleConfigInformation(ExampleConfig,playerid);

//set:
ToggleConfigInformation(ExampleConfig,playerid,1); 
Reply


Messages In This Thread
Bit Functions - by AbyssMorgan - 09.10.2015, 18:31
Re: Bit Functions - by n0minal - 09.10.2015, 19:33
Re: Bit Functions - by AbyssMorgan - 09.10.2015, 19:36
Re: Bit Functions - by AbyssMorgan - 06.02.2016, 18:08
Re: Bit Functions - by AbyssMorgan - 15.03.2016, 19:16
Re: Bit Functions - by iKevin - 15.03.2016, 19:39
Re: Bit Functions - by AbyssMorgan - 27.03.2017, 15:28
Re: Bit Functions - by czop1223 - 28.05.2017, 18:33
Re: Bit Functions - by AbyssMorgan - 28.05.2017, 20:06
Re: Bit Functions - by czop1223 - 02.06.2017, 11:58

Forum Jump:


Users browsing this thread: 2 Guest(s)