Scripting/Squirrel/Functions/Ini/ClearIni
From VC-MP Wiki
This function clears the content of a ini file. Note: the ini file won't be deleted.
Syntax
ClearIni( string FileName )
Arguments
- FileName - This is the file name
Example
In this example we will clear the ini file 'somespam.ini' when the server will be closed/scripts unloaded from the server
function onScriptUnload() { ClearIni( "somespam.ini" ); print( "INI file cleared" ); }
Notes
The call onScriptUnload was used in in this example. More info about this in the corresponding page.
