Scripting/Squirrel/Functions/DisconnectSQL: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
|||
Line 8: | Line 8: | ||
== Example == | == Example == | ||
function onScriptUnload() | function onScriptUnload() | ||
{ | <pre>{ | ||
DisconnectSQL( db ); | DisconnectSQL( db ); | ||
} | }</pre> |
Revision as of 03:25, 5 August 2015
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 ); }