Jump to content

MTA:Paradise modules


MatXpl

Recommended Posts

Hi all!

I have problem in mta:paradise gamemode, i upload all files and configure other files, but i can't start my server later...

This is console debug:

[2010-12-16 15:07:02] Resources: 131 loaded, 0 failed 
[2010-12-16 15:07:02] Querying game-monitor.com master server... success! 
[2010-12-16 15:07:02] MODULE: Unable to find modules/mta_mysql.dll (/home/maxrate/gaz23/mods/deathmatch/modules/mta_mysql.dll: invalid ELF header)! 
[2010-12-16 15:07:02] MODULE: Unable to find modules/sha.dll (/home/maxrate/gaz23/mods/deathmatch/modules/sha.dll: invalid ELF header)!  

Server can't find modules but i upload all in mods/deathmatch/modules/ :oops:

Pls help!

Link to comment

it work thanks!, but i have next problem :/

Server stop all scripts.

Debug:

[2010-12-17 09:13:09] ERROR: Unable to start resource sql; Start up of resource cancelled by script 
  
  
[2010-12-17 09:13:09] ERROR: Unable to start resource irc; Start up of resource cancelled by script 
  
  
[2010-12-17 09:13:09] ERROR: Unable to start resource players; Start up of resource cancelled by script 
... 

Link to comment

this is common problem, some ppl never fix it, but i think the only thing you need is to proper setup mysql connection (please, don't touch the lua files! most ppl are editing lua files, broking the script, then come to forums and complain. only thing you need to edit is some xml file (configuration.xml in the /mods/deathmatch/ directory? or meta.xml in sql resource? i can't remember))

Link to comment

in my opinion mysql connection is good, i setup mysql connection in /mods/deathmatch/settings.xml

    <settings> 
        <!-- MySQL Configuration --> 
        <setting name="@sql.user" value="[b]here i add my username[/b]"/> 
        <setting name="@sql.password" value="[b]here i add my password[/b]"/> 
        <setting name="@sql.database" value="[b]here i add my database name[/b]"/> 
        <setting name="@sql.hostname" value="localhost"/> 
        <setting name="@sql.port" value="3306"/> 
        <!-- Only use this on Linux if the normal connection does fail even though using the correct username & password. --> 
        <setting name="@sql.socket" value="/var/run/mysqld/mysqld.sock"/> 
</settings> 

and i setup in script sql/mysql.lua

local function connect( ) 
    -- retrieve the settings 
    local server = get( "server" ) or "localhost" 
    local user = get( "user" ) or "[b]here i add my username[/b]" 
    local password = get( "password" ) or "[b]here i add my passworld[/b]" 
    local db = get( "database" ) or "[b]here i add my database name[/b]" 
    local port = get( "port" ) or 3306 
    local socket = get( "socket" ) or nil 
     
    -- connect 
    connection = mysql_connect ( server, user, password, db, port, socket ) 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...