Modules/MTA-MySQL: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
Then, add the following line in mtaserver.conf:
Then, add the following line in mtaserver.conf:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
   <module file="mta_mysql.dll" />
   <module src="mta_mysql.dll" />
</syntaxhighlight>
</syntaxhighlight>


Line 26: Line 26:
Then, add the following line in mtaserver.conf:
Then, add the following line in mtaserver.conf:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
   <module file="mta_mysql.so" />
   <module src="mta_mysql.so" />
</syntaxhighlight>
 
===1.0 mtaserver.conf===
In MTA 1.0 the mtaserver.conf syntax has changed for modules to:
<syntaxhighlight lang="xml">
  <module src="mta_mysql" />
</syntaxhighlight>
</syntaxhighlight>



Revision as of 21:37, 14 December 2009

Module info
Name MTA MySQL
Version 0.41
Author Alberto Alonso (ryden)
Module website Not available
Download link Here
License BSD
Written in {{{written_in}}}
Operating system {{{operating_system}}}
Compatible with {{{compatible_with}}}

MTA MySQL is an alternative to the default ml_mysql module provided by the MTA team. It is available for Windows and GNU/Linux and provides the source code.

Note: From version 0.4 it supports both DP2.3 and 1.0 servers.

Installation

Windows

Uncompress the file mta_mysql.dll into your C:\Program files\MTA San Andreas\server\mods\deathmatch\modules\ directory and the file libmysql.dll into your C:\Program files\MTA San Andreas\server\ directory.

Then, add the following line in mtaserver.conf:

  <module src="mta_mysql.dll" />

GNU/Linux

Uncompress the file mta_mysql.so in the mods/deathmatch/modules/ directory.

Then, add the following line in mtaserver.conf:

  <module src="mta_mysql.so" />

Handler functions

Result managing functions