Scripting/Squirrel/Functions/DisconnectSQL: Difference between revisions

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
(Created page with "'''Usage''' To use SQL you need to first download the sqlite plugin from https://bitbucket.org/stormeus/0.4-sqlite/downloads. Once you have downloaded it place the plugin in y...")
 
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
'''Usage'''
== Usage ==
To use SQL you need to first download the sqlite plugin from https://bitbucket.org/stormeus/0.4-sqlite/downloads. Once you have downloaded it place the plugin in your plugins folder and load the plugin in your server.cfg by adding a line in plugins that is for 32 bit users it is sqlite04rel32 and for 64 bit users it is sqlite04rel64
To use SQL you need to first download the sqlite plugin from [https://bitbucket.org/stormeus/0.4-sqlite/downloads here]. Once you have downloaded it place the plugin in your plugins folder and load the plugin in your server.cfg by adding a line in plugins that is for 32 bit users it is sqlite04rel32 and for 64 bit users it is sqlite04rel64


Syntax
== Syntax ==
To disconnect a database you need to use something like
To disconnect a database you need to use something like


DisconnectSQL( db ); on your onScriptUnload event
DisconnectSQL( db ); on your onScriptUnload event
== Example ==
function onScriptUnload()
<pre>{
DisconnectSQL( db );
}</pre>


Adding tables to your database[edit]
== Related Functions ==
You can add a table to your database by using the following function that is
 
{{Scripting/Squirrel/Functions/SQLite Functions}}
[[Category:Scripting/Squirrel/Functions/SQLite _Functions]]

Latest revision as of 19:01, 30 January 2017

Usage

To use SQL you need to first download the sqlite plugin from here. Once you have downloaded it place the plugin in your plugins folder and load the plugin in your server.cfg by adding a line in plugins that is for 32 bit users it is sqlite04rel32 and for 64 bit users it is sqlite04rel64

Syntax

To disconnect a database you need to use something like

DisconnectSQL( db ); on your onScriptUnload event

Example

function onScriptUnload()

{
DisconnectSQL( db );
}

Related Functions