<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=King</id>
	<title>Vice City Multiplayer - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=King"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/King"/>
	<updated>2026-05-10T23:03:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniString&amp;diff=19352</id>
		<title>Scripting/Squirrel/Functions/WriteIniString</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniString&amp;diff=19352"/>
		<updated>2016-06-22T05:38:00Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function writes a string value to an .ini file. If the file does not exist, the function will create it.  == Syntax ==  &amp;lt;code&amp;gt;bool WriteIniString( string filena...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function writes a string value to an .ini file. If the file does not exist, the function will create it.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool WriteIniString( string filename, string section, string var, string value )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to create/edit&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
* &#039;&#039;&#039;value&#039;&#039;&#039; The string value&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will save player&#039;s IP to file &#039;IPs.ini&#039; when they join.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
     WriteIniString( &amp;quot;IPs.ini&amp;quot;, &amp;quot;IP&amp;quot;, player.Name, player.IP );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Name|Player.Name]], [[Scripting/Squirrel/Functions/Players.IP|Player.IP]] and call [[OnPlayerJoin]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniNumber&amp;diff=19351</id>
		<title>Scripting/Squirrel/Functions/WriteIniNumber</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniNumber&amp;diff=19351"/>
		<updated>2016-06-22T05:36:24Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function writes an integer value to an .ini file. If the file does not exist, the function will create it.  == Syntax ==  &amp;lt;code&amp;gt;bool WriteIniInteger( string fil...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function writes an integer value to an .ini file. If the file does not exist, the function will create it.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool WriteIniInteger( string filename, string section, string var, int value )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to create/edit&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
* &#039;&#039;&#039;value&#039;&#039;&#039; The integer value for the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will save player&#039;s cash to a file &#039;PlayerCash.ini&#039; when they leave the game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerPart( player, reason )&lt;br /&gt;
{&lt;br /&gt;
     WriteIniInteger( &amp;quot;PlayerCash.ini&amp;quot;, &amp;quot;Cash&amp;quot;, player.Name, player.Cash );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Name|player.Name]], [[Scripting/Squirrel/Functions/Player.Cash|player.Cash]] and call [[OnPlayerPart]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniInteger&amp;diff=19350</id>
		<title>Scripting/Squirrel/Functions/WriteIniInteger</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniInteger&amp;diff=19350"/>
		<updated>2016-06-22T05:28:24Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function writes an integer value to an .ini file. If the file does not exist, the function will create it.  == Syntax ==  &amp;lt;code&amp;gt;bool WriteIniInteger( string fil...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function writes an integer value to an .ini file. If the file does not exist, the function will create it.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool WriteIniInteger( string filename, string section, string var, int value )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to create/edit&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
* &#039;&#039;&#039;value&#039;&#039;&#039; The integer value for the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will save player&#039;s cash to a file &#039;PlayerCash.ini&#039; when they leave the game.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerPart( player, reason )&lt;br /&gt;
{&lt;br /&gt;
     WriteIniInteger( &amp;quot;PlayerCash.ini&amp;quot;, &amp;quot;Cash&amp;quot;, player.Name, player.Cash );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Name|player.Name]], [[Scripting/Squirrel/Functions/Player.Cash|player.Cash]] and call [[OnPlayerPart]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniBool&amp;diff=19349</id>
		<title>Scripting/Squirrel/Functions/WriteIniBool</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/WriteIniBool&amp;diff=19349"/>
		<updated>2016-06-22T05:21:28Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function writes a boolean value to an .ini file. If the file does not exist, the function will create it.  == Syntax ==  &amp;lt;code&amp;gt;bool WriteIniBool( string filenam...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function writes a boolean value to an .ini file. If the file does not exist, the function will create it.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool WriteIniBool( string filename, string section, string var, bool value )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to create/edit&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
* &#039;&#039;&#039;value&#039;&#039;&#039; The boolean true/false&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will freeze a player and store the control state to an ini file when they type &#039;/c freezeme&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, command, text )&lt;br /&gt;
{&lt;br /&gt;
     if ( command = &amp;quot;freezeme&amp;quot; )&lt;br /&gt;
     {&lt;br /&gt;
          player.IsFrozen = true;&lt;br /&gt;
          WriteIniBool( &amp;quot;Players.ini&amp;quot;, &amp;quot;Frozen&amp;quot;, player.Name, true );&lt;br /&gt;
&lt;br /&gt;
          MessagePlayer( &amp;quot;Buhaha! You can&#039;t move anymore!&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.IsFrozen|player.IsFrozen]], [[Scripting/Squirrel/Functions/Player.Name|player.Name]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and call [[OnPlayerCommand]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/RemoveIniValue&amp;diff=19348</id>
		<title>Scripting/Squirrel/Functions/RemoveIniValue</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/RemoveIniValue&amp;diff=19348"/>
		<updated>2016-06-22T05:20:01Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function deletes a selected value from an ini file.  == Syntax ==  &amp;lt;code&amp;gt;RemoveIniValue( string FileName, string Section, string Value )&amp;lt;/code&amp;gt;  == Arguments ==...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function deletes a selected value from an ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;RemoveIniValue( string FileName, string Section, string Value )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
* &#039;&#039;&#039;Section&#039;&#039;&#039; - The section name. Use without &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot;&lt;br /&gt;
* &#039;&#039;&#039;Value&#039;&#039;&#039; - What do you want delete&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
To see how this works, let&#039;s create (again) a sample ini file &#039;numbers.ini&#039;. You can copy and paste this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[no idea for name]&lt;br /&gt;
1 = 1&lt;br /&gt;
2 = fgh&lt;br /&gt;
[spam]&lt;br /&gt;
2 = 1&lt;br /&gt;
asd = 69&lt;br /&gt;
[end]&lt;br /&gt;
end = yeah&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we want to delete the line where is &#039;2 = 1&#039;. Let&#039;s do this, when the server starts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onServerStart()&lt;br /&gt;
{&lt;br /&gt;
     RemoveIniValue( &amp;quot;numbers.ini&amp;quot;, &amp;quot;spam&amp;quot;, &amp;quot;2&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this check the ini file. It should look like this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[no idea for name]&lt;br /&gt;
1 = 1&lt;br /&gt;
2 = fgh&lt;br /&gt;
[spam]&lt;br /&gt;
asd = 69&lt;br /&gt;
[end]&lt;br /&gt;
end = yeah&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The call [[OnServerStart]] was used in in this example. More info about this in the corresponding page.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniString&amp;diff=19347</id>
		<title>Scripting/Squirrel/Functions/ReadIniString</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniString&amp;diff=19347"/>
		<updated>2016-06-22T05:18:52Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function reads a string saved to an .ini file.  == Syntax ==  &amp;lt;code&amp;gt;string ReadIniString( string filename, string section, string var )&amp;lt;/code&amp;gt;  == Arguments ==...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a string saved to an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;string ReadIniString( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will check whether the player connects from the same IP than earlier and auto-logs them in.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
     if ( ReadIniString( &amp;quot;IPs.ini&amp;quot;, &amp;quot;IP&amp;quot;, player.Name ) == player.IP )&lt;br /&gt;
     {&lt;br /&gt;
          /* some nice autologin stuff here */&lt;br /&gt;
          MessagePlayer( &amp;quot;You have auto-logged in successfully!&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.IP|player.IP]], [[Scripting/Squirrel/Functions/Player.Name|player.Name]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and call [[OnPlayerJoin]] were also used in in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19346</id>
		<title>Scripting/Squirrel/Functions/ReadIniNumber</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19346"/>
		<updated>2016-06-22T05:17:23Z</updated>

		<summary type="html">&lt;p&gt;King: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a float value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;float ReadIniNumber( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will teleport the player to a previously saved location when they type &#039;/c gotoloc LocationName&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang =&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, command, text )&lt;br /&gt;
{&lt;br /&gt;
     local x = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;x&amp;quot; ),&lt;br /&gt;
           y = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;y&amp;quot; ),&lt;br /&gt;
           z = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;z&amp;quot; );&lt;br /&gt;
     if ( x )&lt;br /&gt;
     {&lt;br /&gt;
          local pos = Vector( x, y, z );&lt;br /&gt;
          player.Pos = pos;&lt;br /&gt;
          MessagePlayer( &amp;quot;Teleporting to &amp;quot; + text + &amp;quot;...&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
     else MessagePlayer( &amp;quot;Location &amp;quot; + text + &amp;quot; not found.&amp;quot;, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Pos|player.Pos]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and call [[OnPlayerCommand]] were also used in in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19345</id>
		<title>Scripting/Squirrel/Functions/ReadIniNumber</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19345"/>
		<updated>2016-06-22T05:16:27Z</updated>

		<summary type="html">&lt;p&gt;King: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a float value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;float ReadIniNumber( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will teleport the player to a previously saved location when they type &#039;/c gotoloc LocationName&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, command, text )&lt;br /&gt;
{&lt;br /&gt;
     local x = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;x&amp;quot; ),&lt;br /&gt;
           y = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;y&amp;quot; ),&lt;br /&gt;
           z = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;z&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
     if ( x )&lt;br /&gt;
     {&lt;br /&gt;
          local pos = Vector( x, y, z );&lt;br /&gt;
          player.Pos = pos;&lt;br /&gt;
&lt;br /&gt;
          MessagePlayer( &amp;quot;Teleporting to &amp;quot; + text + &amp;quot;...&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
     else MessagePlayer( &amp;quot;Location &amp;quot; + text + &amp;quot; not found.&amp;quot;, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Pos|player.Pos]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and call [[OnPlayerCommand]] were also used in in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19344</id>
		<title>Scripting/Squirrel/Functions/ReadIniNumber</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniNumber&amp;diff=19344"/>
		<updated>2016-06-22T05:15:35Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function reads a float value from an .ini file.  == Syntax ==  &amp;lt;code&amp;gt;float ReadIniNumber( string filename, string section, string var )&amp;lt;/code&amp;gt;  == Arguments ==...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a float value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;float ReadIniNumber( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will teleport the player to a previously saved location when they type &#039;/c gotoloc LocationName&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, command, text )&lt;br /&gt;
{&lt;br /&gt;
     local x = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;x&amp;quot; ),&lt;br /&gt;
           y = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;y&amp;quot; ),&lt;br /&gt;
           z = ReadIniNumber( &amp;quot;Locations.ini&amp;quot;, text, &amp;quot;z&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
     if ( x )&lt;br /&gt;
     {&lt;br /&gt;
          local pos = Vector( x, y, z );&lt;br /&gt;
          player.Pos = pos;&lt;br /&gt;
&lt;br /&gt;
          MessagePlayer( &amp;quot;Teleporting to &amp;quot; + text + &amp;quot;...&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
&lt;br /&gt;
     else MessagePlayer( &amp;quot;Location &amp;quot; + text + &amp;quot; not found.&amp;quot;, player );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Pos|player.Pos]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and call [[OnPlayerCommand]] were also used in in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniInteger&amp;diff=19343</id>
		<title>Scripting/Squirrel/Functions/ReadIniInteger</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniInteger&amp;diff=19343"/>
		<updated>2016-06-22T05:13:51Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function reads an integer value from an .ini file.  == Syntax ==  &amp;lt;code&amp;gt;int ReadIniInteger( string filename, string section, string var )&amp;lt;/code&amp;gt;  == Arguments =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads an integer value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;int ReadIniInteger( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want to read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will restore the cash amount player had on a previous visit.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
     local cash = ReadIniInteger( &amp;quot;PlayerCash.ini&amp;quot;, &amp;quot;Cash&amp;quot;, player.Name );&lt;br /&gt;
&lt;br /&gt;
     if ( cash )&lt;br /&gt;
     {&lt;br /&gt;
          player.Cash = cash;&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Player.Name|player.Name]], [[Scripting/Squirrel/Functions/Player.Cash|player.Cash]] and call [[OnPlayerJoin]] were also used in in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniBool&amp;diff=19342</id>
		<title>Scripting/Squirrel/Functions/ReadIniBool</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniBool&amp;diff=19342"/>
		<updated>2016-06-22T05:06:58Z</updated>

		<summary type="html">&lt;p&gt;King: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a boolean value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool ReadIniBool( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will check whether the player has been frozen earlier and if so, freezes them on join.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
     if ( ReadIniBool( &amp;quot;Players.ini&amp;quot;, &amp;quot;Frozen&amp;quot;, player.Name ) )&lt;br /&gt;
     {&lt;br /&gt;
          player.IsFrozen = true;&lt;br /&gt;
          MessagePlayer( &amp;quot;Sorry, you have been frozen earlier! :)&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/player.Name| player.Name ]], [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/player.IsFrozen| player.IsFrozen]], [[http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/MessagePlayer| MessagePlayer]] and call [[OnPlayerJoin]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniBool&amp;diff=19341</id>
		<title>Scripting/Squirrel/Functions/ReadIniBool</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ReadIniBool&amp;diff=19341"/>
		<updated>2016-06-22T04:59:25Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function reads a boolean value from an .ini file.  == Syntax ==  &amp;lt;code&amp;gt;bool ReadIniBool( string filename, string section, string var )&amp;lt;/code&amp;gt;  == Arguments ==...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function reads a boolean value from an .ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;bool ReadIniBool( string filename, string section, string var )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;filename&#039;&#039;&#039; This is the name of the file&lt;br /&gt;
* &#039;&#039;&#039;section&#039;&#039;&#039; The section that contains the value you want read&lt;br /&gt;
* &#039;&#039;&#039;var&#039;&#039;&#039; The name of the variable&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This example will check whether the player has been frozen earlier and if so, freezes them on join.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerJoin( player )&lt;br /&gt;
{&lt;br /&gt;
     if ( ReadIniBool( &amp;quot;Players.ini&amp;quot;, &amp;quot;Frozen&amp;quot;, player.Name ) )&lt;br /&gt;
     {&lt;br /&gt;
          player.IsFrozen = true;&lt;br /&gt;
          MessagePlayer( &amp;quot;Sorry, you have been frozen earlier! :)&amp;quot;, player );&lt;br /&gt;
     }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[player.Name]], [[player.IsFrozen]], [[MessagePlayer]] and call [[OnPlayerJoin]] were also used in in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CountIniSection&amp;diff=19340</id>
		<title>Scripting/Squirrel/Functions/CountIniSection</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CountIniSection&amp;diff=19340"/>
		<updated>2016-06-22T04:56:25Z</updated>

		<summary type="html">&lt;p&gt;King: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function says, how many values/lines are in a selected section in an ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CountIniSection( string FileName, string Section )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
* &#039;&#039;&#039;Section&#039;&#039;&#039; - The section name. Use without &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
To see how this works, let&#039;s create (oh yeah, again) a sample ini file &#039;hola.ini&#039;. You can copy and paste this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[Players]&lt;br /&gt;
1 = TheTammer&lt;br /&gt;
2 = TheSpaner&lt;br /&gt;
3 = TheHaxor&lt;br /&gt;
4 = TheCheatzor&lt;br /&gt;
[Nothing]&lt;br /&gt;
Nothing = true&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We want to know how many values/lines are in the &#039;[Players]&#039; section. As you can see, there are 4 values in the section. But we want, that the script will tell us this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onServerStart()&lt;br /&gt;
{&lt;br /&gt;
     print( &amp;quot;There are &amp;quot; + CountIniSection( &amp;quot;hola.ini&amp;quot;, &amp;quot;Players&amp;quot; ) + &amp;quot; players saved.&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The call [[OnServerStart]] was used in in this example. More info about this in the corresponding page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ClearIni&amp;diff=19339</id>
		<title>Scripting/Squirrel/Functions/ClearIni</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ClearIni&amp;diff=19339"/>
		<updated>2016-06-22T04:55:04Z</updated>

		<summary type="html">&lt;p&gt;King: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function clears the content of a ini file. Note: the ini file won&#039;t be deleted.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ClearIni( string FileName )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example we will clear the ini file &#039;somespam.ini&#039; when the server will be closed/scripts unloaded from the server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptUnload()&lt;br /&gt;
{&lt;br /&gt;
     ClearIni( &amp;quot;somespam.ini&amp;quot; );&lt;br /&gt;
     print( &amp;quot;INI file cleared&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The call [[OnScriptUnload]] was used in in this example. More info about this in the corresponding page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/DeleteIniSection&amp;diff=19338</id>
		<title>Scripting/Squirrel/Functions/DeleteIniSection</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/DeleteIniSection&amp;diff=19338"/>
		<updated>2016-06-22T04:47:48Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function deletes a selected section from a ini file.  == Syntax ==  &amp;lt;code&amp;gt;DeleteIniSection( string FileName, string Section )&amp;lt;/code&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;&amp;#039;File...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function deletes a selected section from a ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;DeleteIniSection( string FileName, string Section )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
* &#039;&#039;&#039;Section&#039;&#039;&#039; - The section name. Use without &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
To see how this works, let&#039;s create a sample ini file &#039;hastalavista.ini&#039;. You can copy and paste this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[useful info]&lt;br /&gt;
A = aaa&lt;br /&gt;
&lt;br /&gt;
b = BBB&lt;br /&gt;
&lt;br /&gt;
[spam]&lt;br /&gt;
Nothing to see here = true&lt;br /&gt;
[players]&lt;br /&gt;
1 = nub&lt;br /&gt;
&lt;br /&gt;
2 = nab&lt;br /&gt;
&lt;br /&gt;
3 = noob&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now we want to delete the &#039;[spam]&#039; section. Let&#039;s do this, when the server starts.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onServerStart()&lt;br /&gt;
{&lt;br /&gt;
     DeleteIniSection( &amp;quot;hastalavista.ini&amp;quot;, &amp;quot;spam&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After this check the ini file. It should look like this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[useful info]&lt;br /&gt;
&lt;br /&gt;
A = aaa&lt;br /&gt;
&lt;br /&gt;
b = BBB&lt;br /&gt;
&lt;br /&gt;
[players]&lt;br /&gt;
&lt;br /&gt;
1 = nub&lt;br /&gt;
&lt;br /&gt;
2 = nab&lt;br /&gt;
&lt;br /&gt;
3 = noob&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The call [[OnServerStart]] was used in in this example. More info about this in the corresponding page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/INI Functions}}&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CountIniSection&amp;diff=19337</id>
		<title>Scripting/Squirrel/Functions/CountIniSection</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CountIniSection&amp;diff=19337"/>
		<updated>2016-06-22T04:02:42Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function says, how many values/lines are in a selected section in an ini file.  == Syntax ==  &amp;lt;code&amp;gt;CountIniSection( string FileName, string Section )&amp;lt;/code&amp;gt;  =...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function says, how many values/lines are in a selected section in an ini file.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;CountIniSection( string FileName, string Section )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
* &#039;&#039;&#039;Section&#039;&#039;&#039; - The section name. Use without &amp;quot;[&amp;quot; and &amp;quot;]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
To see how this works, let&#039;s create (oh yeah, again) a sample ini file &#039;hola.ini&#039;. You can copy and paste this:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
[Players]&lt;br /&gt;
1 = TheTammer&lt;br /&gt;
2 = TheSpaner&lt;br /&gt;
3 = TheHaxor&lt;br /&gt;
4 = TheCheatzor&lt;br /&gt;
[Nothing]&lt;br /&gt;
Nothing = true&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We want to know how many values/lines are in the &#039;[Players]&#039; section. As you can see, there are 4 values in the section. But we want, that the script will tell us this.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onServerStart()&lt;br /&gt;
{&lt;br /&gt;
     print( &amp;quot;There are &amp;quot; + CountIniSection( &amp;quot;hola.ini&amp;quot;, &amp;quot;Players&amp;quot; ) + &amp;quot; players saved.&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ClearIni&amp;diff=19336</id>
		<title>Scripting/Squirrel/Functions/ClearIni</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ClearIni&amp;diff=19336"/>
		<updated>2016-06-22T03:58:23Z</updated>

		<summary type="html">&lt;p&gt;King: Created page with &amp;quot;__NOTOC__ This function clears the content of a ini file. Note: the ini file won&amp;#039;t be deleted.  == Syntax ==  &amp;lt;code&amp;gt;ClearIni( string FileName )&amp;lt;/code&amp;gt;  == Arguments ==  * &amp;#039;&amp;#039;&amp;#039;F...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function clears the content of a ini file. Note: the ini file won&#039;t be deleted.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ClearIni( string FileName )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;FileName&#039;&#039;&#039; - This is the file name&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example we will clear the ini file &#039;somespam.ini&#039; when the server will be closed/scripts unloaded from the server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptUnload()&lt;br /&gt;
{&lt;br /&gt;
     ClearIni( &amp;quot;somespam.ini&amp;quot; );&lt;br /&gt;
     print( &amp;quot;INI file cleared&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The call [[Scripting/Squirrel/Events/Misc/onScriptUnload|onScriptUnload]] was used in in this example. More info about this in the corresponding page.&lt;/div&gt;</summary>
		<author><name>King</name></author>
	</entry>
</feed>