Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: wgrywać
1. Czy trzeba wgrywać moduł do ogrpg?
1.Witam mam serwer na serverproject wraz z db, i moim pytaniem czy trzeba wgrywa? jakis modu? przy ogrpg?
2. podpio?em wszystko i dodalem object resource.* do admin ale mimo tego wyskakuja mi jakies bledy

[ Dodano : 2017-08-15, 11:14 ]
Moje ustawienia
[code]--[[
Resource: OURGame v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
]]

-- Settings
DBHandler=nil
DBName="ip bazy"
DBUser="login"
DBPass="haslo"
DBHost="nazwa bazy"

-- 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="login"
local SQL_PASSWD=...