Scripting/Squirrel/Functions/ClearIni: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "__NOTOC__ This function clears the content of a ini file. Note: the ini file won't be deleted. == Syntax == <code>ClearIni( string FileName )</code> == Arguments == * '''F...") |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 24: | Line 24: | ||
=== Notes === | === Notes === | ||
The call [[ | The call [[OnScriptUnload]] was used in in this example. More info about this in the corresponding page. | ||
== Related Functions == | |||
{{Scripting/Squirrel/Functions/INI Functions}} | |||
[[Category:Scripting/Squirrel/Functions/INI_Functions]] |
Latest revision as of 18:15, 30 January 2017
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.