Jump to content

sylver

Members
  • Posts

    38
  • Joined

  • Last visited

Everything posted by sylver

  1. Reading package lists... Done Building dependency tree Reading state information... Done libpcre3 is already the newest version. libpcre3-dev is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. vps1013:/emul/ia32-linux/multitheftauto_linux-1.0.4# ./mta-server ./mta-server: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory vps1013:/emul/ia32-linux/multitheftauto_linux-1.0.4#
  2. Ehh vps1013:~# cd multitheftauto_linux-1.0.4 vps1013:~/multitheftauto_linux-1.0.4# ./mta-server ./mta-server: error while loading shared libraries: libpcre.so.3: cannot open shared object file: No such file or directory vps1013:~/multitheftauto_linux-1.0.4#
  3. apt-get install libsqlite3-dev Reading package lists... Done Building dependency tree Reading state information... Done libsqlite3-dev is already the newest version. The following packages were automatically installed and are no longer required: comerr-dev libkrb5-dev libssh2-1-dev libssl-dev zlib1g-dev libkadm55 libldap2-dev Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. apt-get install ia32-libs Reading package lists... Done Building dependency tree Reading state information... Done ia32-libs is already the newest version. The following packages were automatically installed and are no longer required: comerr-dev libkrb5-dev libssh2-1-dev libssl-dev zlib1g-dev libkadm55 libldap2-dev Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. libsqlite3.so.0: cannot open shared object file: No such file or directory ERROR: Loading mod (/emul/ia32-linux/mta1.0.4/mods/deathmatch/deathmatch.so) fai led! Press Q to shut down the server!
  4. I I saw the tutorial and I did so but still bad libsqlite3.so.0: cannot open shared object file: No such file or directory ERROR: Loading mod (/emul/ia32-linux/mta1.0.4/mods/deathmatch/deathmatch.so) fai led! Press Q to shut down the server!
  5. Hi I have a problem I installed 1.0.4 on the server MTA vps and I have errors in the directory I have libsqlite3.so deathmatch and the error is so libsqlite3.so.0: can not open shared object file: No such file or directory ERROR: Loading mod (/ root/mta1.0.4/mods/deathmatch/deathmatch.so) failed! Press Q to shut down the server!
  6. sylver

    MySQL Problem

    Yes i have ... I am configuring database local connection = nil local connection = nil local null = nil local results = { } local max_results = 128 -- connection functions local function connect( ) -- retrieve the settings local server = get( "server" ) or "localhost" local user = get( "user" ) or "****" local password = get( "password" ) or "****" local db = get( "database" ) or "****" local port = get( "port" ) or 3306 local socket = get( "socket" ) or nil -- connect connection = mysql_connect ( localhost, ****,****, ****, 3306, socket ) if connection then return true else outputDebugString ( "Connection to MySQL Failed.", 1 ) return false end end local function disconnect( ) if connection and mysql_ping( connection ) then mysql_close( connection ) end end local function checkConnection( ) if not connection or not mysql_ping( connection ) then return connect( ) end return true end addEventHandler( "onResourceStart", resourceRoot, function( ) if not mysql_connect then if hasObjectPermissionTo( resource, "function.shutdown" ) then shutdown( "MySQL module missing." ) end cancelEvent( true, "MySQL module missing." ) elseif not hasObjectPermissionTo( resource, "function.mysql_connect" ) then if hasObjectPermissionTo( resource, "function.shutdown" ) then shutdown( "Insufficient ACL rights for mysql resource." ) end cancelEvent( true, "Insufficient ACL rights for mysql resource." ) elseif not connect( ) then if connection then outputDebugString( mysql_error( connection ), 1 ) end if hasObjectPermissionTo( resource, "function.shutdown" ) then shutdown( "MySQL failed to connect." ) end cancelEvent( true, "MySQL failed to connect." ) else null = mysql_null( ) end end ) addEventHandler( "onResourceStop", resourceRoot, function( ) for key, value in pairs( results ) do mysql_free_result( value.r ) outputDebugString( "Query not free()'d: " .. value.q, 2 ) end disconnect( ) end ) -- function escape_string( str ) if type( str ) == "string" then return mysql_escape_string( connection, str ) elseif type( str ) == "number" then return tostring( str ) end end function query( str, ... ) checkConnection( ) if ( ... ) then local t = { ... } for k, v in ipairs( t ) do t[ k ] = escape_string( tostring( v ) ) or "" end str = str:format( unpack( t ) ) end local result = mysql_query( connection, str ) if result then for num = 1, max_results do if not results[ num ] then results[ num ] = { r = result, q = str } return num end end mysql_free_result( result ) return false, "Unable to allocate result in pool" end return false, mysql_error( connection ) end function query_free( str, ... ) checkConnection( ) if ( ... ) then local t = { ... } for k, v in ipairs( t ) do t[ k ] = escape_string( tostring( v ) ) or "" end str = str:format( unpack( t ) ) end local result = mysql_query( connection, str ) if result then mysql_free_result( result ) return true end return false, mysql_error( connection ) end function free_result( result ) if results[ result ] then mysql_free_result( results[ result ].r ) results[ result ] = nil end end function query_assoc( str, ... ) local t = { } local result, error = query( str, ... ) if result then for result, row in mysql_rows_assoc( results[ result ].r ) do local num = #t + 1 t[ num ] = { } for key, value in pairs( row ) do if value ~= null then t[ num ][ key ] = tonumber( value ) or value end end end free_result( result ) return t end return false, error end function query_assoc_single( str, ... ) local t = { } local result, error = query( str, ... ) if result then local row = mysql_fetch_assoc( results[ result ].r ) if row then for key, value in pairs( row ) do if value ~= null then t[ key ] = tonumber( value ) or value end end free_result( result ) return t end free_result( result ) return false end return false, error end function query_insertid( str, ... ) local id = false local result, error = query( str, ... ) if result then id = mysql_insert_id( connection ) free_result( result ) return id end return false, error end I have server and mysql in Germany.
  7. sylver

    MySQL Problem

    I install modules [21:46:56] MODULE: Loaded "MySQL 5.0 database module" (0.41) by "Alberto Alonso <[email protected]>" [21:46:56] MODULE: Loaded "SHA Module" (1.02) by "mabako" [21:46:56] MODULE: Loaded "Sockets Module" (0.10) by "Gamesnert, mabako, MCvarial & x86" [21:46:59] ERROR: ...ate/tfcklan1/mods/deathmatch/resources/sql/mysql.lua:35: bad argument #1 to 'mysql_connect' (string expected, got nil) [21:46:59] ERROR: call: failed to call 'sql:query_assoc_single' [21:46:59] ERROR: ...ate/tfcklan1/mods/deathmatch/resources/sql/mysql.lua:35: bad argument #1 to 'mysql_connect' (string expected, got nil) [21:46:59] ERROR: call: failed to call 'sql:query_assoc_single'
  8. sylver

    MySQL Problem

    Hi i installed mta paradise in my server i have mysql problem [21:46:59] ERROR: ...ate/tfcklan1/mods/deathmatch/resources/sql/mysql.lua:35: bad argument #1 to 'mysql_connect' (string expected, got nil) [21:46:59] ERROR: call: failed to call 'sql:query_assoc_single' [21:46:59] ERROR: ...ate/tfcklan1/mods/deathmatch/resources/sql/mysql.lua:35: bad argument #1 to 'mysql_connect' (string expected, got nil) [21:46:59] ERROR: call: failed to call 'sql:query_assoc_single'
  9. Help [12:44:52] WARNING: 1_ServerFuelGage.lua: xmlLoadFile may be using an outdated syntax. Please check and update. - Line: 210 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 212 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 222 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 223 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 224 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 225 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 226 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 227 [12:44:52] WARNING: 1_ServerFuelGage.lua: xmlLoadFile may be using an outdated syntax. Please check and update. - Line: 210 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeGetAttribute' - Line: 212 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 222 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 223 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 224 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 225 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 226 [12:44:52] WARNING: 1_ServerFuelGage.lua: Bad argument @ 'xmlNodeSetAttribute' - Line: 227
  10. Arrives in good marker loads and ties it to another place
  11. Hi looking for a script for loading and unloading. Does it mean if you move the marker to jump to the window which can be loaded. Please help
×
×
  • Create New...