27.03.2017, 15:28
(
Last edited by AbyssMorgan; 27/03/2017 at 04:36 PM.
Reason: GetConfigSize(max_items);
)
Update v1.8.0:
- Added macros:
- Example code:
- Added macros:
PHP Code:
GetConfigAddress(itemid);
GetConfigBit(itemid);
GetConfigSize(max_items);
IsToggleConfigInformation(variable,itemid);
ToggleConfigInformation(variable,itemid,value);
PHP Code:
//vehicle
new ark[GetConfigSize(MAX_VEHICLES)];
for(new i = 0; i < MAX_VEHICLES; i++){
ToggleConfigInformation(ark,i,1);
}
//player
new ExampleConfig[GetConfigSize(MAX_PLAYERS)];
//get:
IsToggleConfigInformation(ExampleConfig,playerid);
//set:
ToggleConfigInformation(ExampleConfig,playerid,1);