Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2018-09-08, 18:36


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

Witam, wgra?em wszystko z IT'S YOUR WORLD na ftp a nastepnie importowalem baze danych i wszytko poszlo pomyslnie, w DB2 i ogp-db edytowalem na moje dane do mysql i po wejsciu na serwer jak klikam zarejestruj sie to jest napisane ze pomyslnie zarejestrowano ale jak dam zaloguj potem to mam ze nie ma takiego w bazie, a gdy wpisze jakis nick z bazy danych z tabelki user to pokazuje ze zle haslo wiec wydaje mi sie ze gdy robie zarejestruj te konto nie zapisuje sie w bazie danych w tym user i mam pytanie i prosbe jak to naprawic bo utkna?em na logowaniu. Dzi?kuje z g?ry za pomoc.
Dobry dzia? ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 18:43


Nexisten

Moderator






Wiek: 22
Na forum: 4107 dni
Posty: 551
Nick w MP: Nexisten

Piwa: 1479

Respekt: 287,3
Respekt: 287,3Respekt: 287,3Respekt: 287,3

Dzia? dobry.

1. Wy?wietlaj? si? jakie? b??dy w /debugscript 3?
2. Posiadasz wgrany modu? mysql?
3. Czy dane si? na PEWNO zgadzaj??
4. Pode?lij kod DB2 i ogrpg-db ukrywaj?c swoje has?o.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 19:52


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"vNeXxuS" napisał/a:

Dzia? dobry.

1. Wy?wietlaj? si? jakie? b??dy w /debugscript 3?
2. Posiadasz wgrany modu? mysql?
3. Czy dane si? na PEWNO zgadzaj??
4. Pode?lij kod DB2 i ogrpg-db ukrywaj?c swoje has?o.


1.yy a powiedzialbys mi gdzie to sie doklanie znajduje? ten debugscript 3?
2. Tak posiadam
3. W db2 oraz ogrpg-db zmienielem dane na swoje chyba ze ejszcze gdzies
4. DB2:
--[[
Obsluga baz danychinterfejs do bazy MySQL realizowany za pomoca wbudowanych w MTA funkcji db...

@author Lukasz Biegaj <wielebny@bestplay.pl>
@author WUBE <wube@lss-rp.pl>
@copyright 2011-2013 Lukasz Biegaj <wielebny@bestplay.pl>
@license Dual GPLv2/MIT
@package MTA-XyzzyRP
@link https://github.com/lpiob/MTA-XyzzyRP GitHub
]]--

local SQL

local function connect()
    -- w ponizszej linii uzupelnij dane autoryzacji
    SQL dbConnect("mysql""dbname=db_16014;host=127.0.0.1""LOGINDOMYSQL","HASLODOMYSQL","share=1")
    if (not SQLthen
        outputServerLog("BRAK POLACZENIA Z BAZA DANYCH!")
    else
        zapytanie("SET NAMES utf8;")
    end

end

addEventHandler("onResourceStart",resourceRootconnect)

function pobierzTabeleWynikow(...)
    local h=dbQuery(SQL,...)
    if (not hthen
        return nil
    end
    local rows dbPoll(h, -1)
    return rows
end

function pobierzWyniki(...)
    local h=dbQuery(SQL,...)
    if (not hthen
        return nil
    end
    local rows dbPoll(h, -1)
    if not rows then return nil end
    return rows[1]
end

function zapytanie(...)
    local h=dbQuery(SQL,...)
    local result,numrows=dbPoll(h,-1)
    return numrows
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 resultthen return nil end
    local tabela={}

    while true do
        local row mysql_fetch_row(result)
        if (not rowthen break end
        table.insert(tabela,row)
    end
    mysql_free_result(result)
    return tabela
end


A tutaj ogrpg-db:


--[[
    ResourceOURGame v2
    DevelopersSplit <split.programista@gmail.com>
    You have no right to use this code without my permission.
    (c2015 <split.programista@gmail.com>. All rights reserved.
]]

-- Settings
DBHandler=nil
DBName="db_16014"
DBUser="logindomysql"
DBPass="haslodomysql"
DBHost="127.0.0.1"

-- Functions
function dbSet(...)
    if not {...} then return end
    local stringe=dbPrepareString(DBHandler,...)
    local query=dbExec(DBHandlerstringe)
    return query
end

function dbGet(...)
    if not {...} then return end
    local stringe=dbPrepareString(DBHandler,...)
    local query=dbQuery(DBHandlerstringe)
    local result=dbPoll(query, -1)
    return result
end


addEventHandler("onResourceStart"resourceRoot, function()
    DBHandler=dbConnect("mysql""dbname="..DBName..";host="..DBHost..""DBUserDBPass"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="logindomysql"
local SQL_PASSWD="haslodomydql"
local SQL_DB="db_16014"
local SQL_HOST="127.0.0.1"
local SQL_PORT=3306

local root getRootElement()

local SQL

local function connect()
    SQL mysql_connect(SQL_HOSTSQL_LOGINSQL_PASSWDSQL_DBSQL_PORT)
    if (not SQLthen
        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(keepAlive300000)
end)

function esc(value)
    return mysql_escape_string(SQL,value)
end

function pobierzTabeleWynikow(query)
    local result=mysql_query(SQL,query)
    if (not resultthen
        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 resultthen 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 (resultthen 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 resultthen return nil end
    local tabela={}

    while true do
        local row mysql_fetch_row(result)
        if (not rowthen break end
        table.insert(tabela,row)
    end
    mysql_free_result(result)
    return tabela
end


function getSQLLink()
    return SQL
end



chyba dobrze wstawilem. masz moze ts3? by?o by ?atwiej i szybciej. Z g?ry dzi?kuje za pomoc

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 20:06


Nexisten

Moderator






Wiek: 22
Na forum: 4107 dni
Posty: 551
Nick w MP: Nexisten

Piwa: 1479

Respekt: 287,3
Respekt: 287,3Respekt: 287,3Respekt: 287,3

Pomagamy tylko i wy??cznie na forum.
Co do problemu, spr?buj zamieni? '127.0.0.1' w obu przypadkach na 'localhost', poniewa? czasami MTA po prostu tego nie wy?apuje - finalnie poinformuj.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 20:11


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"vNeXxuS" napisał/a:

Pomagamy tylko i wy??cznie na forum.
Co do problemu, spr?buj zamieni? '127.0.0.1' w obu przypadkach na 'localhost', poniewa? czasami MTA po prostu tego nie wy?apuje - finalnie poinformuj.


Mia?em localhost i tak samo, z baza danych ogpg-logging sie ?aczy bo gdy wpisze nick osoby z starcyh kont to pokazuje ze bledne haslo a gdy wpisze calkowicie nowy nick to ze takiego nie ma w bazie ale gdy rejestruje to podam ten nowy nick i haslo i pisze ze pomyslnie zarejestrowano ale te konto nie tworzy sie w user-logging w bazie danych i go nie ma. co mam zrobic?

[ Dodano: 2018-09-08, 20:15 ]
"vNeXxuS" napisał/a:

Pomagamy tylko i wy??cznie na forum.
Co do problemu, spr?buj zamieni? '127.0.0.1' w obu przypadkach na 'localhost', poniewa? czasami MTA po prostu tego nie wy?apuje - finalnie poinformuj.


a tutaj dodaje logi po wlaczeniu serwera

Kod:


==================================================================
= Multi Theft Auto: San Andreas v1.5.5 [64 bit]
==================================================================
= Server name : IKSDE
= Server IP address: auto
= Server port : 22003
=
= Log file : ..o_linux_x64/mods/deathmatch/logs/server.log
= Maximum players : 32
= HTTP port : 22005
= Voice Chat : Disabled
= Bandwidth saving : Medium
==================================================================
[18-09-07 20] ERROR: Couldn't find file vehicles/cheetah.txd for resource modloader
[18-09-07 20] Loading of resource 'modloader' failed
[18-09-07 20] WARNING: Ignoring duplicate client file in resource 'ogrpg-gui': 'shader.fx'
[18-09-07 20] WARNING: Ignoring duplicate client file in resource 'taser': 'taser.dff'
[18-09-07 20] WARNING: Ignoring duplicate client file in resource 'tesla': 'shader.fx'
[18-09-07 20] Resources: 224 loaded, 0 failed
[18-09-07 20] MODULE: Loaded "MySQL 5.0 database module" (0.50) by "Alberto Alonso <rydencillo@gmail.com>"
[18-09-07 20] Starting resources...................
[18-09-07 20] WARNING: Kajdanki/policja_c.lua(Line 45) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState.
[18-09-07 20] Some files in 'Kajdanki' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: Ogranicznik/tempomat_c.lua(Line 52) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState.
[18-09-07 20] Some files in 'Ogranicznik' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: Radio-auta/gui.lua(Line 1) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-07 20] Some files in 'Radio-auta' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] INFO: --------------------------
[18-09-07 20] INFO: loaded station: Energy Remix
[18-09-07 20] INFO: loaded station: Radio Chillout
[18-09-07 20] INFO: loaded station: ESKA Warszawa
[18-09-07 20] INFO: loaded station: RMF MAXX
[18-09-07 20] INFO: loaded station: VIVA
[18-09-07 20] INFO: loaded station: RMF FM
[18-09-07 20] INFO: loaded station: DJ TOP 50
[18-09-07 20] INFO: loaded station: Niezapomniane przeboje
[18-09-07 20] INFO: loaded station: Najwieksze przeboje
[18-09-07 20] INFO: loaded station: Najwieksze Polskie przeboje
[18-09-07 20] INFO: loaded station: Play Your Sound
[18-09-07 20] INFO: loaded station: Fresh.FM
[18-09-07 20] INFO: loaded station: Open.FM DubStep
[18-09-07 20] INFO: loaded station: Eska RAP
[18-09-07 20] INFO: loaded station: RADIO ZET
[18-09-07 20] INFO: loaded station: DiscoPolo
[18-09-07 20] INFO: loaded station: FRESH (NAJNOWSZE KAWALKI)
[18-09-07 20] INFO: loaded station: DANCE
[18-09-07 20] INFO: loaded station: TRAP
[18-09-07 20] INFO: loaded station: Radio Serwerowe IYW
[18-09-07 20] Server minclientversion is now 1.5.5-9.12356.0
[18-09-07 20] POLACZENIE JEST!
[18-09-07 20] ERROR: [biznesy]/biznesy/s.lua:274: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-07 20] ERROR: [systembram]/bramy/gate.lua:9: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-07 20] ERROR: [systembram]/bramy/gate.lua:10: bad argument #1 to 'pairs' (table expected, got nil)
[18-09-07 20] ERROR: Couldn't find resource gielda. Check it exists.
[18-09-07 20] ERROR: Couldn't find resource glue. Check it exists.
[18-09-07 20] ERROR: Couldn't find resource headshot. Check it exists.
[18-09-07 20] INFO: ===============================================================================
[18-09-07 20] INFO: MTA:SA HANDLING EDITOR [hedit.googlecode.com]
[18-09-07 20] INFO: ===============================================================================
[18-09-07 20] ERROR: [skrypty_glowne]/lss-domy/domy.lua:104: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-07 20] ERROR: [skrypty_glowne]/lss-domy/domy.lua:109: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-07 20] ERROR: [skrypty_glowne]/lss-domy/domy.lua:111: bad argument #1 to 'ipairs' (table expected, got nil)
[18-09-07 20] ERROR: Couldn't find resource modloader. Check it exists.
[18-09-07 20] WARNING: myjka/client.lua(Line 13) [Client] getPlayerOccupiedVehicle is deprecated and may not work in future versions. Please replace with getPedOccupiedVehicle.
[18-09-07 20] Some files in 'myjka' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: [skrypty]/myjka/server.lua:13: Bad argument @ 'addEvent' [Expected string at argument 1, got function]
[18-09-07 20] WARNING: [skrypty]/myjka/server.lua:14: Bad argument @ 'addEventHandler' [Expected string at argument 1, got function]
[18-09-07 20] WARNING: [skrypty]/myjka/server.lua:16: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-07 20] WARNING: [skrypty]/myjka/server.lua:20: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-07 20] WARNING: [skrypty]/myjka/server2.lua:13: Bad argument @ 'addEvent' [Expected string at argument 1, got function]
[18-09-07 20] WARNING: [skrypty]/myjka/server2.lua:14: Bad argument @ 'addEventHandler' [Expected string at argument 1, got function]
[18-09-07 20] WARNING: [skrypty]/myjka/server2.lua:16: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-07 20] WARNING: [skrypty]/myjka/server2.lua:20: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-07 20] ERROR: [skrypty_glowne]/ogrpg-3dtext/s_3dtext.lua:2: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-07 20] WARNING: ogrpg-core <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2-9.07903 because of 'saveplayers.lua')
[18-09-07 20] WARNING: ogrpg-core requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2-9.07903 because of 'saveplayers.lua')
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: ogrpg-db <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2 because of 'dbPrepareString')
[18-09-07 20] WARNING: ogrpg-db requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2 because of 'dbPrepareString')
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] INFO: * Connect to server MYSQL...
[18-09-07 20] WARNING: ogrpg-gui/c_gui.lua(Line 89) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-07 20] Some files in 'ogrpg-gui' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: ogrpg-logging/c_zone.lua(Line 96) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-07 20] WARNING: ogrpg-logging/c_logging.lua(Line 136) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-07 20] Some files in 'ogrpg-logging' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: ogrpg-vehicles <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'c_misc.lua')
[18-09-07 20] WARNING: ogrpg-vehicles requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'c_misc.lua')
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] INFO: [og-vehicles] Loaded 341 vehicles.
[18-09-07 20] WARNING: File 'img/sultan1.png' in resource 'pj' is invalid.
[18-09-07 20] WARNING: realdriveby/driveby_client.lua(Line 254) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState.
[18-09-07 20] Some files in 'realdriveby' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: tpswat/tp.lua [Server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8.
[18-09-07 20] Some files in 'tpswat' use deprecated functions.
[18-09-07 20] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-07 20] WARNING: Script '[teleporty]/tpswat/tp.lua' is not encoded in UTF-8. Loading as ANSI...
[18-09-07 20] SCRIPT ERROR: [teleporty]/tpswat/tp.lua:1: unexpected symbol near '?'
[18-09-07 20] ERROR: Loading script failed: [teleporty]/tpswat/tp.lua:1: unexpected symbol near '?'
[18-09-07 20] ERROR: Couldn't find resource y_licznik. Check it exists.
[18-09-07 20] ERROR: Couldn't find resource play. Check it exists.
[18-09-07 20] Authorized serial account protection is enabled for the ACL group(s): `Admin` See http://mtasa.com/authserial
[18-09-07 20] Server started and is ready to accept connections!
[18-09-07 20] To stop the server, type 'shutdown' or press Ctrl-C
[18-09-07 20] Type 'help' for a list of commands.


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 21:19


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Pr?bujesz postawi? serwer lokalnie?

Wy?lij b??dy z /debugscript 3 (tak, taka komenda - musisz by? zalogowany na koncie Admin).

Wy?lij te? kod od logowania i tworzenia kont.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 21:34


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"Wilq" napisał/a:

Pr?bujesz postawi? serwer lokalnie?

Wy?lij b??dy z /debugscript 3 (tak, taka komenda - musisz by? zalogowany na koncie Admin).

Wy?lij te? kod od logowania i tworzenia kont.



serwer stawiam na vps

tutaj pliki z ogrpg-logging:

c_logging.lua:


if getElementData(localPlayer"player:uid"then return end

local root getRootElement()
local resourceRoot getResourceRootElement(getThisResource())
local screenWidthscreenHeight guiGetScreenSize()


local blurStrength 20


local myScreenSource dxCreateScreenSource(screenWidthscreenHeight)
blurShaderblurTec dxCreateShader("shaders/BlurShader.fx")


function renderblur()
    if blur == true then
        dxUpdateScreenSource(myScreenSource)
        
        dxSetShaderValue(blurShader"ScreenSource"myScreenSource);
        dxSetShaderValue(blurShader"BlurStrength"blurStrength);
        dxSetShaderValue(blurShader"UVSize"screenWidthscreenHeight);

        dxDrawImage(00screenWidthscreenHeightblurShader)
    end
end
addEventHandler("onClientRender"rootrenderblur)

addEventHandler("onClientResourceStop"resourceRoot,
function()
    if (blurShaderthen
        destroyElement(blurShader)
        blurShader nil
    end
end)

x,y=2313.581282.80-- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nilbutton={}, info=nilmisc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
    if not isCursorShowing() then return end
    cx,cy=getCursorPosition()
    cx,cy=cx*sx,cy*sy
    if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
        return true,cx,cy
    else
        return false
    end
end
local dist 100
local angler 0
function getPointFromDistanceRotation(xydistangler)
    local a math.rad(90 angler)
    local dx math.cos(a) * dist;
    local dy math.sin(a) * dist;
    return x+dxy+dy;
end

function renderLoginBox()
    blur true
    --dxDrawImage(0019201080"misc/drift.png"AristatesYuvarlak00tocolor(255255255255), false)
    dxDrawRectangle(sx*270/1025sy*150/769sx*500/1025sy*458/767tocolor(000135), false)
    --dxDrawImage(0019201080"misc/drift.png"AristatesYuvarlak00tocolor(255255255255), false)
    if data.info then dxDrawText(data.infosx*252/1024sy*272/768sx*800/1024sy*255/768tocolor(23700255), 1.00"default""center""center"falseend
    --dxDrawLine(sx*0/1024sy*199/768sx*1022/1024sy*200/768tocolor(31111193255), 5false)
    --dxDrawLine(sx*0/1024sy*509/768sx*1022/1024sy*510/768tocolor(31111193255), 5false)
    dxDrawText("U?ytkownik"sx*280/1024sy*270/768sx*760/1024sy*302/768white1.30"default-bold""center""center"false)
    dxDrawText("Has?o"sx*-240/1024sy*480/768sx*1280/1024sy*302/768white1.30"default-bold""center""center"false)
    if not isMouseIn(sx*305/1024sy*506/768sx*200/1024sy*45/768then dxDrawRectangle(sx*305/1024sy*506/768sx*200/1024sy*45/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*305/1024sy*506/768sx*200/1024sy*45/768tocolor(2201000100), falseend
    if not isMouseIn(sx*535/1024sy*506/768sx*200/1024sy*45/768then dxDrawRectangle(sx*535/1024sy*506/768sx*200/1024sy*45/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*535/1024sy*506/768sx*200/1024sy*45/768tocolor(2201000100), falseend
    dxDrawText("Zaloguj si?"sx*685/1024sy*1015/768sx*130/1024sy*45/768white1.00"default-bold""center""center"false)
    dxDrawText("Zarejestruj si?"sx*1140/1024sy*1013/768sx*130/1024sy*45/768white1.00"default-bold""center""center"false)
    dxDrawImage(sx 0.3118sy 0.1813sx 0.3838sy 0.1549"logo.png"000tocolor(255255255255), false)
    --dxDrawImage(sw/2-295,sh/2+70,594,307,"logo.png"angle0, -120 )
    local x,y=getPointFromDistanceRotation(2313.581282.80distangler)
    setCameraMatrix(x,y,107.72+0.9,2323.691285.66107.72+0.9)
    angler=(angler+0.1)
end





addEventHandler("onClientClick"root, function(btn,state)
    if btn=="left" and state=="down" then
        if isMouseIn(sx*305/1024sy*506/768sx*200/1024sy*45/768) and data.showed then
            local login=guiGetText(data.button[1])
            local pass=guiGetText(data.button[2])
            if string.len(login) < or string.len(pass) < 2 then
                data.info="Wype?nij wszystkie pola!"
                return
            end
            triggerServerEvent("logging:checkAccount"resourceRootloginpass)
        end
        if isMouseIn(sx*535/1024sy*506/768sx*200/1024sy*45/768) and data.showed then
            local login=guiGetText(data.button[1])
            local pass=guiGetText(data.button[2])
            if string.len(login) > 22 or string.len(pass) > 22 and string.len(login) < or string.len(pass) < 3 then
                data.info="Login/Has?o musz? mie? mniej ni? od 3 do 22 znak?w."
                return
            end
            triggerServerEvent("logging:newAccount"resourceRootloginpass)
        end
    end
end)

addEvent("logging:result"true)
addEventHandler("logging:result"resourceRoot, function(value,info)
    if not info then info="" end
    if value then
        data.showed=false
        showZones(data.misc)
        
        -- Usuwamy elementy
        destroyElement(data.button[1])
        destroyElement(data.button[2])
        removeEventHandler("onClientRender"rootrenderLoginBox)
    else
        data.info=tostring(info)
        setTimer(function() data.info=nil end30001)
    end
end)

addEventHandler("onClientResourceStart"resourceRoot, function()
    showChat(false)
    showCursor(true)
    fadeCamera(true)
    data.showed=true
    setElementAlpha(localPlayer,0)
    data.misc=playSound("misc/intro.mp3",true)
    setSoundVolume(data.misc1.0)
    showPlayerHudComponent("all",false)
    guiSetInputMode("no_binds_when_editing")
    setElementData(localPlayer,"status","Loguje si?")
    --setElementData(localPlayer,"player:logged",false)
    addEventHandler("onClientRender"rootrenderLoginBox)
    data.button[1]=guiCreateEdit(0.400.400.220.04""true)
    data.button[2]=guiCreateEdit(0.400.530.220.04""true)   
    guiEditSetMasked(data.button[2],true)
end)



c_zone.lua


x,y=36.63,82.19 -- my width
intro_step=math.random(0,850)

local sx,sy=guiGetScreenSize()
local data={ showed=nilbutton={}, info=nilmisc=nil, }

function isMouseIn(psx,psy,pssx,pssy,abx,aby)
    if not isCursorShowing() then return end
    cx,cy=getCursorPosition()
    cx,cy=cx*sx,cy*sy
    if cx >= psx and cx <= psx+pssx and cy >= psy and cy <= psy+pssy then
        return true,cx,cy
    else
        return false
    end
end

function renderZoneBox()
    --dxDrawRectangle(sx*0/1024sy*201/768sx*1024/1024sy*308/768tocolor(000188), false)
    if data.info then dxDrawText(data.infosx*252/1024sy*232/768sx*800/1024sy*255/768tocolor(23700255), 1.00"default""center""center"falseend
    --dxDrawLine(sx*0/1024sy*199/768sx*1022/1024sy*200/768tocolor(31111193255), 5false)
    --dxDrawLine(sx*0/1024sy*509/768sx*1022/1024sy*510/768tocolor(31111193255), 5false)
    --dxDrawText("Your Adventure RPG"sx*0/1024sy*157/768sx*1024/1024sy*237/768white2.00"pricedown""center""center"false)

    if not isMouseIn(sx*10/1024sy*48/768sx*225/1024sy*92/768then dxDrawRectangle(sx*10/1024sy*48/768sx*225/1024sy*92/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*10/1024sy*48/768sx*225/1024sy*92/768tocolor(2201000100), falseend
    if not isMouseIn(sx*10/1024sy*192/768sx*225/1024sy*92/768then dxDrawRectangle(sx*10/1024sy*192/768sx*225/1024sy*92/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*10/1024sy*192/768sx*225/1024sy*92/768tocolor(2201000100), falseend
    if not isMouseIn(sx*10/1024sy*336/768sx*225/1024sy*92/768then dxDrawRectangle(sx*10/1024sy*336/768sx*225/1024sy*92/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*10/1024sy*336/768sx*225/1024sy*92/768tocolor(2201000100), falseend
    if not isMouseIn(sx*10/1024sy*480/768sx*225/1024sy*92/768then dxDrawRectangle(sx*10/1024sy*480/768sx*225/1024sy*92/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*10/1024sy*480/768sx*225/1024sy*92/768tocolor(2201000100), falseend
    if not isMouseIn(sx*10/1024sy*624/768sx*225/1024sy*92/768then dxDrawRectangle(sx*10/1024sy*624/768sx*225/1024sy*92/768tocolor(31222140170), false)
    else dxDrawRectangle(sx*10/1024sy*624/768sx*225/1024sy*92/768tocolor(2201000100), falseend

    dxDrawText("Spawn LS"sx*-80/1024sy*-188/768sx*323/1024sy*386/768white1.00"default-bold""center""center"false)
    dxDrawText("Przechowywalnia pojazd?w LS"sx*-380/1024sy*92/768sx*641/1024sy*386/768white1.00"default-bold""center""center"false)
    dxDrawText("Dom"sx*-700/1024sy*373/768sx*937/1024sy*386/768white1.00"default-bold""center""center"false)
    dxDrawText("Baza organizacji"sx*-700/1024sy*660/768sx*937/1024sy*386/768white1.00"default-bold""center""center"false)
    dxDrawText("Spawn LV"sx*-80/1024sy*957/768sx*323/1024sy*386/768white1.00"default-bold""center""center"false)
    dxDrawImage(sx 0.3118sy 0.0313sx 0.3838sy 0.1549"logo.png"000tocolor(255255255255), false)


    local zone1=math.sin(intro_step/500)*9000
    local zone2=math.cos(intro_step/500)*9000
    setCameraMatrix (2019.561343.0314.00zone1zone22)
    --setCameraMatrix(zone1zone2120zone1zone2120)
    intro_step=intro_step-1.5

end

addEventHandler("onClientClick"root, function(btn,state)
    if btn=="left" and state=="down" then
        if isMouseIn(sx*10/1024sy*54/768sx*225/1024sy*92/768) and data.showed then
         setElementData(localPlayer,"player:spawn",{1479.51, -1713.0714.05+0.1})
         closeZones()
        end
        if isMouseIn(sx*10/1024sy*198/768sx*225/1024sy*92/768) and data.showed then
         setElementData(localPlayer,"player:spawn",{1588.83, -1406.0013.82+0.1})
         closeZones()
        end
        if isMouseIn(sx*10/1024sy*624/768sx*225/1024sy*92/768) and data.showed then
         setElementData(localPlayer,"player:spawn",{2597.441889.6711.03+0.1})
         closeZones()
        end
        if isMouseIn(sx*10/1024sy*342/768sx*225/1024sy*92/768) and data.showed then
        local domek=getElementData(localPlayer,"player:house")
        if not domek then
        setElementData(localPlayer,"player:spawn",{1479.51, -1713.0714.05+0.1})
        outputChatBox("Nie posiadasz domku!")
        end
        closeZones()
        end
        if isMouseIn(sx*10/1024sy*480/768sx*225/1024sy*92/768) and data.showed then
        local org=getElementData(localPlayer,"player:organization:spawn")
        if not org then
        setElementData(localPlayer,"player:spawn",{1479.51, -1713.0714.05+0.1})
        outputChatBox("Nie posiadasz organizacji/Lub nie posiada ona spawnu!")
        closeZones()
        else
        setTimer(outputChatBox,1500,1,"Pomy?lnie zrespi?e? si? w organizacji.")
        setElementData(localPlayer,"player:spawn",{tonumber(org[1]),tonumber(org[2]),tonumber(org[3])})
        closeZones()
        end
        end
    end
end)


function closeZones()
    showChat(true)
    showCursor(false)
    fadeCamera(false)
    setElementAlpha(localPlayer,255)
    stopSound(data.misc)
    showPlayerHudComponent("all",false)
    showPlayerHudComponent("radar",true)
    showPlayerHudComponent("crosshair",true)
    showPlayerHudComponent("weapon",false)
    showPlayerHudComponent("health",false)
    showPlayerHudComponent("breath",false)
    showPlayerHudComponent("ammo",true)
    data.showed=false
    destroyElement(blurShader)
    -- Usuwamy elementy
    triggerServerEvent("core:spawnPlayer"localPlayer)
    setTimer(triggerEvent2501"gui:start"localPlayer)
    removeEventHandler("onClientRender"rootrenderZoneBox)
    blur false
end

function showZones(misc)
    data.misc=misc
    data.showed=true
    showPlayerHudComponent("all",false)
    guiSetInputMode("no_binds_when_editing")
    addEventHandler("onClientRender"rootrenderZoneBoxend


meta.xml :


<meta>
    <!-- FILES -->
    <file src="misc/intro.mp3" />

    <!-- SERVERSIDE -->
    <script src="s_logging.lua" type="server" />

    <!-- CLIENTSIDE -->
    <script src="c_zone.lua" type="client" />
    <script src="c_logging.lua" type="client" />
    <file src="logo.png" />
    
    <file src="shaders/BlurShader.fx" type="client"/>
</meta>


s_logging.lua :


--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['ogrpg-db']:dbGet("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!!!!!.","blad")
                return
            end
            end
            --local result2=exports['ogrpg-db']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
            setPlayerName(clientresult[1].login2)
            outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
            setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom",root,client)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)
local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
    return end
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,??)"loginteaEncode(pass,"*****"),getPlayerSerial(client),1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)


jeszcze jest folder misc i shaders i logo.png


a debusscipt wpsialem i wklejam dwa screnny bo wyskoczylo takie cos:








i co teraz?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 22:29


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Spr?buj ten kod:

S-SIDE (s_logging.lua)



--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['ogrpg-db']:dbGet("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                    triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!","blad")
                    return
                end
            end
            --local result2=exports['ogrpg-db']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
                setPlayerName(clientresult[1].login2)
                outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
                setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom"rootclient)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)

local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
        return 
    end
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,?)"loginteaEncode(pass,"*****"), getPlayerSerial(client), 1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:08


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"Wilq" napisał/a:

Spr?buj ten kod:

S-SIDE (s_logging.lua)



--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['ogrpg-db']:dbGet("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                    triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!","blad")
                    return
                end
            end
            --local result2=exports['ogrpg-db']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
                setPlayerName(clientresult[1].login2)
                outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
                setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom"rootclient)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)

local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
        return 
    end
    local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["ogrpg-db"]:dbSet("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,?)"loginteaEncode(pass,"*****"), getPlayerSerial(client), 1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)



Wklei?em ten kod i nadal to samo. Jak zrobie aby zarejestrowac konto to mam ze pomylsnie zarejestrowano. a jak chce sie zalogowac to ze nie ma takiego w bazie i w mysql w ogrpg-users nic sie nie stworzy?o. a jak wy?acze ten skrypt ogrpg-logging to nie mam normalnie mapy serwera, tylko takie cos jak na screenie nizej:





jak to naprawic ?

(skrypt wy?aczy?em klikac F8 i w kosnoli zalogowalem sie poprzez login MojNick haslo bo to konto ma admina w acl.xml bo stworzylem je komenda, ale nie ma go w bazie danych i nie da sie na nie zalogowac poprzez panel, i wszedlem w panel admina i resource ogrpg-logging stop

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:19


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

W??cz skrypt ogrpg-logging i po??cz si? ponownie z serwerem.

Upewnij si?, ?e masz dobrze dane wpisane do MySQL.

S-SIDE (logging_s)


--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['DB2']:pobierzTabeleWynikow("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                    triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!","blad")
                    return
                end
            end
            --local result2=exports['DB2']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
                setPlayerName(clientresult[1].login2)
                outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
                setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom"rootclient)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["DB2"]:zapytanie("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)

local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
        return 
    end
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["DB2"]:zapytanie("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,?)"loginteaEncode(pass,"*****"), getPlayerSerial(client), 1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:30


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"Wilq" napisał/a:

W??cz skrypt ogrpg-logging i po??cz si? ponownie z serwerem.

Upewnij si?, ?e masz dobrze dane wpisane do MySQL.

S-SIDE (logging_s)


--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['DB2']:pobierzTabeleWynikow("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                    triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!","blad")
                    return
                end
            end
            --local result2=exports['DB2']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
                setPlayerName(clientresult[1].login2)
                outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
                setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom"rootclient)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["DB2"]:zapytanie("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)

local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
        return 
    end
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["DB2"]:zapytanie("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,?)"loginteaEncode(pass,"*****"), getPlayerSerial(client), 1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)



A wy kt?rych plikach powinienem ustawic moje dane do mysql? Doklanie w kt?rych i gdzie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:33


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

W skrypcie DB2, linijka:
SQL dbConnect("mysql""dbname=db_16014;host=127.0.0.1""LOGINDOMYSQL","HASLODOMYSQL","share=1")


"LOGINDOMYSQL": login do MySQ:
"HASLODOMYSQL": has?o do MySQL
sprawd? czy nazwa bazy danych sie zgadza oraz host.

W skrypcie ogrpg-db:
DBName="db_16014"
DBUser="LOGINDOMYSQL"
DBPass="HASLODOMYSQL"
DBHost="127.0.0.1"


Tak samo jak u g?ry, login MySQL, has?o, nazwa bazy danych i sprawd? host.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:36


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"Wilq" napisał/a:

W??cz skrypt ogrpg-logging i po??cz si? ponownie z serwerem.

Upewnij si?, ?e masz dobrze dane wpisane do MySQL.

S-SIDE (logging_s)


--[[
     Panel Logowania by Kurianusz @2016 . 
     Regulamin /Licencja
     Korzystanie z tego kodu tylko je?eli posiadasz tzwcopyrightsZakaz usuwania tej notatki!
     Pami?taj ?e nielegalne korzystanie z kodu podpada pod kodeks karny :> Tak samo jak usuni?cie tej notatki!
]]



function sprawdzorganizacje(plr)
local x exports['DB2']:pobierzTabeleWynikow("SELECT spawn from ogrpg_organization_list join ogrpg_organizations on ogrpg_organizations.code = ogrpg_organization_list.id WHERE uid=? and not(spawn=?)",getElementData(plr,"player:uid"),"0,0,0")
if and #x > 0 then
local t split(x[1].spawn",")
    return t
end
return false
end


addEvent("logging:checkAccount"true)
addEventHandler("logging:checkAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        if result[1].login == login and result[1].pass == md5(passthen
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Ryjek"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Trujeczka"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass,"Trujeczka"then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"*****"),login)
            triggerClientEvent(client"logging:result"resourceRootfalse"Zaaktualizowano twoj profil! Zaloguj sie ponownie!.","git")
            return
        end
        if result[1].login == login and result[1].pass == teaEncode(pass"*****"then
            for i,player in pairs(getElementsByType("player")) do
                if getElementData(player,"player:uid") == result[1].id then
                    triggerClientEvent(client"logging:result"resourceRootfalse"Kto? jest zalogowany na to konto!","blad")
                    return
                end
            end
            --local result2=exports['DB2']:dbGet("SELECT login2 from ogrpg_users where id=?",result[1].id)
            if not result[1].login2 == false then
                setPlayerName(clientresult[1].login2)
                outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2..""client255255255)
            else
                setPlayerName(clientlogin)
            end
            setElementData(client"player:uid"result[1].id)
            triggerClientEvent(client"logging:result"resourceRoottrue"Zalogowa?e? si? pomyslnie","git")
            triggerEvent("SprawdzDom"rootclient)
            setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
            if result[1].register_serial == false then
            local query=exports["DB2"]:zapytanie("UPDATE ogrpg_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
            end
            local logs=exports["DB2"]:zapytanie("INSERT INTO ogrpg_logs_login (name,serial,data) VALUES (?,?,NOW())"string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
        else
            triggerClientEvent(client"logging:result"resourceRootfalse"Podane dane s? nieprawid?owe.","blad")
        end
    else
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login nie istnieje w bazie.","blad")
    end
end)

local maks_ilosc_kont -- Maksymalna ilosc kont do rejestracji
addEvent("logging:newAccount"true)
addEventHandler("logging:newAccount"resourceRoot, function(login,pass)
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE register_serial=?"getPlayerSerial(client))
    if result and #result >= maks_ilosc_kont then
        triggerClientEvent(client"logging:result"resourceRootfalse"Na ten serial zostala utworzona maksymalna ilosc kont.","blad")
        return 
    end
    local result=exports["DB2"]:pobierzTabeleWynikow("SELECT * FROM ogrpg_users WHERE login=?"login)
    if result and #result > 0 then
        triggerClientEvent(client"logging:result"resourceRootfalse"Podany login ju? istnieje w bazie.","blad")
    else
        local query=exports["DB2"]:zapytanie("INSERT INTO ogrpg_users (login,pass,register_serial,changedpw) VALUES (?,?,?,?)"loginteaEncode(pass,"*****"), getPlayerSerial(client), 1)
        if query then
            triggerClientEvent(client"logging:result"resourceRootfalse"Pomy?lnie zarejestrowa?e?(a?) si?","git")
            setElementData(client"player:logged"true)
        end
    end
end)



Problem polega na tym, ze nie tworzy on w bazie danych nowych kont, bo stare konta odczytuje ale nie moge sie na nie zalogowac bo maja zaszyfrowane hasla w bazie danych i pisze ze zle haslo, a wpisze login taki jak nie ma w bazie danych to pokazuje ze nie ma takiego w bazie danych

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:39


Wilq







Wiek: 24
Na forum: 4428 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Ale dane do MySQL masz poprawne? Dostajesz informacj? "BRAK POLACZENIA Z BAZA DANYCH" w consoli? O to mi chodzi.
Wgrywa?e? kod, kt?ry wysy?a?em w poprzednich wiadomo?ciach?

Przy??? si? troch? je?li ju? chcesz stawia? serwer a nie masz o tym zielonego poj?cia.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-09-08, 23:47


CinusPL







Wiek: 26
Na forum: 2832 dni
Posty: 20
Nick w MP: CinusPL



Respekt: 50

"Wilq" napisał/a:

Ale dane do MySQL masz poprawne? Dostajesz informacj? "BRAK POLACZENIA Z BAZA DANYCH" w consoli? O to mi chodzi.
Wgrywa?e? kod, kt?ry wysy?a?em w poprzednich wiadomo?ciach?

Przy??? si? troch? je?li ju? chcesz stawia? serwer a nie masz o tym zielonego poj?cia.



Tak wgra?em, ten kod, nie dostaje komunikatu ze mam brak po?aczenia z baz? danych, zobacz tutaj logi z teraz jak w??cz?:


Kod:


==================================================================
= Multi Theft Auto: San Andreas v1.5.5 [64 bit]
==================================================================
= Server name : IKSDE
= Server IP address: auto
= Server port : 22003
=
= Log file : ..o_linux_x64/mods/deathmatch/logs/server.log
= Maximum players : 32
= HTTP port : 22005
= Voice Chat : Disabled
= Bandwidth saving : Medium
==================================================================
[18-09-08 23:34] ERROR: Couldn't find file vehicles/cheetah.txd for resource modloader
[18-09-08 23:34] Loading of resource 'modloader' failed
[18-09-08 23:34] WARNING: Ignoring duplicate client file in resource 'ogrpg-gui': 'shader.fx'
[18-09-08 23:34] WARNING: Ignoring duplicate client file in resource 'taser': 'taser.dff'
[18-09-08 23:34] WARNING: Ignoring duplicate client file in resource 'tesla': 'shader.fx'
[18-09-08 23:34] Resources: 225 loaded, 0 failed
[18-09-08 23:34] MODULE: Loaded "MySQL 5.0 database module" (0.50) by "Alberto Alonso <rydencillo@gmail.com>"
[18-09-08 23:34] Starting resources...................
[18-09-08 23:34] WARNING: Kajdanki/policja_c.lua(Line 45) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState.
[18-09-08 23:34] Some files in 'Kajdanki' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: Ogranicznik/tempomat_c.lua(Line 52) [Client] getControlState is deprecated and may not work in future versions. Please replace with getPedControlState.
[18-09-08 23:34] Some files in 'Ogranicznik' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: Radio-auta/gui.lua(Line 1) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-08 23:34] Some files in 'Radio-auta' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] INFO: --------------------------
[18-09-08 23:34] INFO: loaded station: Energy Remix
[18-09-08 23:34] INFO: loaded station: Radio Chillout
[18-09-08 23:34] INFO: loaded station: ESKA Warszawa
[18-09-08 23:34] INFO: loaded station: RMF MAXX
[18-09-08 23:34] INFO: loaded station: VIVA
[18-09-08 23:34] INFO: loaded station: RMF FM
[18-09-08 23:34] INFO: loaded station: DJ TOP 50
[18-09-08 23:34] INFO: loaded station: Niezapomniane przeboje
[18-09-08 23:34] INFO: loaded station: Najwieksze przeboje
[18-09-08 23:34] INFO: loaded station: Najwieksze Polskie przeboje
[18-09-08 23:34] INFO: loaded station: Play Your Sound
[18-09-08 23:34] INFO: loaded station: Fresh.FM
[18-09-08 23:34] INFO: loaded station: Open.FM DubStep
[18-09-08 23:34] INFO: loaded station: Eska RAP
[18-09-08 23:34] INFO: loaded station: RADIO ZET
[18-09-08 23:34] INFO: loaded station: DiscoPolo
[18-09-08 23:34] INFO: loaded station: FRESH (NAJNOWSZE KAWALKI)
[18-09-08 23:34] INFO: loaded station: DANCE
[18-09-08 23:34] INFO: loaded station: TRAP
[18-09-08 23:34] INFO: loaded station: Radio Serwerowe IYW
[18-09-08 23:34] Server minclientversion is now 1.5.5-9.12356.0
[18-09-08 23:34] POLACZENIE JEST!
[18-09-08 23:34] ERROR: [biznesy]/biznesy/s.lua:274: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-08 23:34] ERROR: [systembram]/bramy/gate.lua:9: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-08 23:34] ERROR: [systembram]/bramy/gate.lua:10: bad argument #1 to 'pairs' (table expected, got nil)
[18-09-08 23:34] ERROR: Couldn't find resource gielda. Check it exists.
[18-09-08 23:34] ERROR: Couldn't find resource glue. Check it exists.
[18-09-08 23:34] ERROR: Couldn't find resource headshot. Check it exists.
[18-09-08 23:34] INFO: ===============================================================================
[18-09-08 23:34] INFO: MTA:SA HANDLING EDITOR [hedit.googlecode.com]
[18-09-08 23:34] INFO: ===============================================================================
[18-09-08 23:34] ERROR: [skrypty_glowne]/lss-domy/domy.lua:104: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-08 23:34] ERROR: [skrypty_glowne]/lss-domy/domy.lua:109: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-08 23:34] ERROR: [skrypty_glowne]/lss-domy/domy.lua:111: bad argument #1 to 'ipairs' (table expected, got nil)
[18-09-08 23:34] ERROR: Couldn't find resource modloader. Check it exists.
[18-09-08 23:34] WARNING: myjka/client.lua(Line 13) [Client] getPlayerOccupiedVehicle is deprecated and may not work in future versions. Please replace with getPedOccupiedVehicle.
[18-09-08 23:34] Some files in 'myjka' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: [skrypty]/myjka/server.lua:13: Bad argument @ 'addEvent' [Expected string at argument 1, got function]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server.lua:14: Bad argument @ 'addEventHandler' [Expected string at argument 1, got function]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server.lua:16: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server.lua:20: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server2.lua:13: Bad argument @ 'addEvent' [Expected string at argument 1, got function]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server2.lua:14: Bad argument @ 'addEventHandler' [Expected string at argument 1, got function]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server2.lua:16: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-08 23:34] WARNING: [skrypty]/myjka/server2.lua:20: Bad argument @ 'addEventHandler' [Expected element at argument 2, got nil]
[18-09-08 23:34] ERROR: [skrypty_glowne]/ogrpg-3dtext/s_3dtext.lua:2: exports: Call to non-running server resource (ogrpg-db) [string "?"]
[18-09-08 23:34] WARNING: ogrpg-core <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2-9.07903 because of 'saveplayers.lua')
[18-09-08 23:34] WARNING: ogrpg-core requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2-9.07903 because of 'saveplayers.lua')
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: ogrpg-db <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2 because of 'dbPrepareString')
[18-09-08 23:34] WARNING: ogrpg-db requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least server 1.5.2 because of 'dbPrepareString')
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] INFO: * Connect to server MYSQL...
[18-09-08 23:34] WARNING: ogrpg-gui/c_gui.lua(Line 89) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-08 23:34] Some files in 'ogrpg-gui' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: ogrpg-logging/c_zone.lua(Line 96) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-08 23:34] WARNING: ogrpg-logging/c_logging.lua(Line 136) [Client] showPlayerHudComponent is deprecated and may not work in future versions. Please replace with setPlayerHudComponentVisible.
[18-09-08 23:34] Some files in 'ogrpg-logging' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: ogrpg-vehicles <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'c_misc.lua')
[18-09-08 23:34] WARNING: ogrpg-vehicles requires upgrade as <min_mta_version> section in the meta.xml is incorrect or missing (expected at least client 1.5.2-9.07903 because of 'c_misc.lua')
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] INFO: [og-vehicles] Loaded 341 vehicles.
[18-09-08 23:34] WARNING: File 'img/sultan1.png' in resource 'pj' is invalid.
[18-09-08 23:34] WARNING: realdriveby/driveby_client.lua(Line 254) [Client] setControlState is deprecated and may not work in future versions. Please replace with setPedControlState.
[18-09-08 23:34] Some files in 'realdriveby' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: tpswat/tp.lua [Server] is encoded in ANSI instead of UTF-8. Please convert your file to UTF-8.
[18-09-08 23:34] Some files in 'tpswat' use deprecated functions.
[18-09-08 23:34] Use the 'upgrade' command to perform a basic upgrade of resources.
[18-09-08 23:34] WARNING: Script '[teleporty]/tpswat/tp.lua' is not encoded in UTF-8. Loading as ANSI...
[18-09-08 23:34] SCRIPT ERROR: [teleporty]/tpswat/tp.lua:1: unexpected symbol near '?'
[18-09-08 23:34] ERROR: Loading script failed: [teleporty]/tpswat/tp.lua:1: unexpected symbol near '?'
[18-09-08 23:34] ERROR: Couldn't find resource y_licznik. Check it exists.
[18-09-08 23:34] ERROR: Couldn't find resource play. Check it exists.
[18-09-08 23:34] Querying MTA master server... success! (Auto detected IP:77.55.216.163)
[18-09-08 23:34] Authorized serial account protection is enabled for the ACL group(s): `Admin` See http://mtasa.com/authserial
[18-09-08 23:34] Server started and is ready to accept connections!
[18-09-08 23:34] To stop the server, type 'shutdown' or press Ctrl-C


Postaw piwo autorowi tego posta
 

 
Tagi: its :: your :: world :: nie :: dziala
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » IT'S YOUR WORLD nie dziala mi Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku