DeleteIniSection
From Liberty Unleashed Wiki
Note: This function requires the external module lu_ini.
This function removes a whole section from an .ini file.
Syntax
bool DeleteIniSection( string file, string section )
Arguments
- file - The name of the .ini file
- section - The section which should be deleted
Example
function onPlayerCommand( player, cmd, text ) { if ( cmd == "delsection" ) { if ( text ) DeleteIniSection( text, player.Name ); } }
This will delete the section labeled as the players name in the given ini file.
Notes
The call onPlayerCommand was used in in this example. More info about this in the corresponding page.
Related Functions
These functions are provided by the official module lu_ini.