ClearIni

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events
Note: This function requires the external module lu_ini.

This function clears an .ini file.

Syntax

  1. bool ClearIni( string file )

Arguments

  • file - The name of the .ini file which should be cleared

Example

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "clearini" )
  5. {
  6. if ( text ) ClearIni( text );
  7. }
  8. }
  9.  

This will clear the ini that is stated in the command.

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.

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox