Scripting/Squirrel/Functions/ClearIni

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.


Related Functions