Wysłany: 2018-01-11, 20:47
Czesio.
Wiek: 33 Na forum: 3445 dni Posty: 34
Witam mam problem, postanowi?em postawi? serwer na ogrpg-db i DB2 lecz mam problem w konsoli mianowicie :
Kod: [2018-01-11 20:42] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause' [DUP x6]
[2018-01-11 20:42] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause'
[2018-01-11 20:42] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause' [DUP x2]
[2018-01-11 20:42] WARNING: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'data' in 'where cl
--[[
Resource : OURGame v2
Developers : Split < split . programista @ gmail . com >
You have no right to use this code without my permission .
( c ) 2015 < split . programista @ gmail . com >. All rights reserved .
]]
-- Settings
DBHandler = nil
DBName = "dsadasdsadsa"
DBUser = "dsadsadasdasd"
DBPass = "dssdadsasdadsdsasdads"
DBHost = "sddsasdasdsdsdsd"
-- Functions
function dbSet (...)
if not {...} then return end
local stringe = dbPrepareString ( DBHandler ,...)
local query = dbExec ( DBHandler , stringe )
return query
end
function dbGet (...)
if not {...} then return end
local stringe = dbPrepareString ( DBHandler ,...)
local query = dbQuery ( DBHandler , stringe )
local result = dbPoll ( query , - 1 )
return result
end
addEventHandler ( "onResourceStart" , resourceRoot , function()
DBHandler = dbConnect ( "mysql" , "dbname=" .. DBName .. ";host=" .. DBHost .. "" , DBUser , DBPass , "share=1;autoreconnect=1" )
if DBHandler then
outputDebugString ( "* Connect to server MYSQL..." )
dbSet ( "SET NAMES utf8" )
else
outputDebugString ( "* No Connecting to server MYSQL.." )
end
end )
local SQL_LOGIN = "db_1111111"
local SQL_PASSWD = "sadsadsadsadsa"
local SQL_DB = "db_111111"
local SQL_HOST = "12312312312312"
local SQL_PORT = 3306
local root = getRootElement ()
local SQL
local function connect ()
SQL = mysql_connect ( SQL_HOST , SQL_LOGIN , SQL_PASSWD , SQL_DB , SQL_PORT )
if ( not SQL ) then
outputServerLog ( "BRAK POLACZENIA Z BAZA DANYCH!" )
else
-- mysql_query ( SQL , "SET NAMES utf8" )
-- outputServerLog ( "Modul mysql polaczony!" )
end
end
local function keepAlive ()
if ( not mysql_ping ( SQL )) then
outputServerLog ( "Zerwane polaczenie z baza danych, nawiazywanie..." )
connect ()
end
end
addEventHandler ( "onResourceStart" , getResourceRootElement (),function()
connect ()
setTimer ( keepAlive , 30000 , 0 )
end )
function esc ( value )
return mysql_escape_string ( SQL , value )
end
function pobierzTabeleWynikow ( query )
local result = mysql_query ( SQL , query )
if ( not result ) then
outputDebugString ( "mysql_query failed: (" .. mysql_errno ( SQL ) .. ") " .. mysql_error ( SQL ))
outputServerLog ( "mysql_query failed: (" .. mysql_errno ( SQL ) .. ") " .. mysql_error ( SQL ))
return nil
end
local tabela ={}
for result , row in mysql_rows_assoc ( result ) do
table . insert ( tabela , row )
end
mysql_free_result ( result )
return tabela
end
function pobierzWyniki ( query )
local result = mysql_query ( SQL , query )
if ( not result ) then return nil end
row = mysql_fetch_assoc ( result )
mysql_free_result ( result )
return row
end
function zapytanie ( query )
local result = mysql_query ( SQL , query )
if ( result ) then mysql_free_result ( result ) return true end
return
end
function insertID ()
return mysql_insert_id ( SQL )
end
function affectedRows ()
return mysql_affected_rows ( SQL )
end
function fetchRows ( query )
local result = mysql_query ( SQL , query )
if ( not result ) then return nil end
local tabela ={}
while true do
local row = mysql_fetch_row ( result )
if ( not row ) then break end
table . insert ( tabela , row )
end
mysql_free_result ( result )
return tabela
end
function getSQLLink ()
return SQL
end
Wysłany: 2018-01-11, 20:49
Hiroszekk
Wiek: 24 Na forum: 3312 dni Posty: 113
Nick w MP: Hiroszek
Piwa : 845
Masz z?? baze danych pod twoje skrypty. Brakuje paru kolumn w tabelach
Więcej szczegółów
Wystawiono 1 piw(a):Czesio.
Wysłany: 2018-01-11, 20:52
Czesio.
Wiek: 33 Na forum: 3445 dni Posty: 34
Co dok?adnie ? Mo?na jaki? kontakt ziomek ?
Wysłany: 2018-01-11, 20:53
Hiroszekk
Wiek: 24 Na forum: 3312 dni Posty: 113
Nick w MP: Hiroszek
Piwa : 845
Z tego
Cytat: [MySQL]/ogrpg-db/s_db.lua:27: dbPoll failed; Unknown column 'ostatnio' in 'where clause
zbytnio nic nie powiem. Poszukaj w jakim skrypcie ogrpg-db chce wyczyta? kolumne 'ostatnio' oraz 'data'
Wysłany: 2018-01-11, 21:02
Czesio.
Wiek: 33 Na forum: 3445 dni Posty: 34
mojeuid = getElementData ( source , "player:uid" )
[ Dodano : 2018-01-11, 21:04 ]
skrypt ogrpg-core chce data a ostatnio to poszukam tego
Wysłany: 2018-01-11, 21:05
Ciastuuś
Truck soon...
Wiek: 26 Na forum: 3071 dni Posty: 799
Nick w MP: Ciastuuś
Piwa : 4297
Na jakiej paczce postawi?e? serwer? Pomo?e nam to rozwi?za? problem
Więcej szczegółów
Wystawiono 1 piw(a):Czesio.
Wysłany: 2018-01-11, 23:25
Czesio.
Wiek: 33 Na forum: 3445 dni Posty: 34
new-world v3 przerobiony its v2.0 chcia?em potestowa? sobie na paczce i jedyne co to wieeeelka papka ..
[ Dodano : 2018-01-12, 12:09 ]
Temat for close. Rozwi?za?em problem poprostu jestem g?ubi jak 2 lewe pary but?w i doda?em swoje pliki i sie sta?o co si? stac nie mia?o mia?em odpalone 3 pliki ogrpg-db jeden z its dtugi z ya a trzeci z new world. Ka?dy chcia? z mysql czego? czego nie istnieje. Dzi?kuje, ?e ktokolwiek pr?bowa? mi pom?c, serdecznie pozdrawiam i rozdaj? po piwerku
Tagi: straszne :: bledy :: msql
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: