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

Wysłany: 2020-12-31, 01:42


Mikro16







Wiek: 32
Na forum: 3461 dni
Posty: 5
Nick w MP: Mikro16



Respekt: 50

Witajcie posiadam problem z panelem logowania z paczki East RPG.

Nie pokazuje ?adnych b??d?w , kody si? zgadzaj? .Nie wiem co mam zrobi? normalnie se ju? w?osy wyrywam.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-31, 11:02


xyzzz^

A nic






Wiek: 18
Na forum: 1993 dni
Posty: 319
Nick w MP: Aspyk21

Piwa: 308

Respekt: 81

Ostrzeżeń: 100%
"Mikro16" napisał/a:

Witajcie posiadam problem z panelem logowania z paczki East RPG.

Nie pokazuje ?adnych b??d?w , kody si? zgadzaj? .Nie wiem co mam zrobi? normalnie se ju? w?osy wyrywam.

Ale jaki problem?

Podpis

Znajdź mnie na:
Steamie
GitHubie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-31, 11:14


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Mikro16, po wiec jaki masz problem ew. b??dy z debugscript 3 i kod bo nikt jasnowidzem nie jest.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-31, 11:24


_jvneczek







Wiek: 22
Na forum: 4325 dni
Posty: 1513
Nick w MP: _jvneczek

Piwa: 3949

Respekt: 337,5
Respekt: 337,5Respekt: 337,5Respekt: 337,5

"Mikro16" napisał/a:

Witajcie posiadam problem z panelem logowania z paczki East RPG.

Nie pokazuje ?adnych b??d?w , kody si? zgadzaj? .Nie wiem co mam zrobi? normalnie se ju? w?osy wyrywam.

Poka? kod logowania, w tym te? b??dy w debugscript 3, je?li b?d? b??dy z logowaniem - wska? linijk? w kodzie, kt?rej dotyczy b??d.

Podpis

Support Team: 04.10.2020 - 01.09.2020
Test Moderator: 03.05.2021 - 01.09.2021
Moderator: 01.09.2021 - 23.10.2021

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-31, 16:20


Mikro16







Wiek: 32
Na forum: 3461 dni
Posty: 5
Nick w MP: Mikro16



Respekt: 50

W?a?cie w tym jest problem nie pokazuje b??d?w . Jedynie jest informacja ,?e jest b??dne has?o lub login . (W skr?cie dane s? nie prawid?owe)

https://imgur.com/dmPLKBF

Cytat:

--[[
Resource: OURGme v2
Developers: Split <[email protected]>
You have no right to use this code without my permission.
(c) 2015 <[email protected]>. All rights reserved.
(c) 2015 <[email protected]>. All rights reserved.
Edytowany przez AmaMa na potrzeby serwera PSSM/15-08-2017r
Edytowany przez oskitmp na potrzeby serwera CRL/19-03-2020r
Edytowany przez oskitmp na potrzeby serwera LevelupRPG V4/17-05-2020r
Edytowany przez oskitmp na potrzeby serwera EliteRPG 11-09-2020r



]]
sx,sy = guiGetScreenSize()
function sw(value)
return value / 1920*sx
end

function sh(value)
return value / 1080*sy
end

local screenSize = Vector2(guiGetScreenSize())
local screen = dxCreateScreenSource(screenSize.x, screenSize.y)

local rot = 0
local xdd = dxCreateFont("font.ttf", 20)
local nextzjeb = dxCreateFont("font2.ttf", 60)

x,y=36.63,82.19 -- my width
intro_step=math.random(0,850)
musicRandom = math.random(1, 6)
local sx,sy=guiGetScreenSize()
local data={ showed=nil, button={}, info=nil, misc=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 sx,sy = guiGetScreenSize() -- pobieramy rozdzielczo�� gracza kt�ry widzi gui
local px,py = (sx/1366),(sy/768) -- dzielimy rozdzielczo�� gracza kt�ry widzi gui przez rozdzielczo�� na kt�rej by�o robione


GUIEditor = {
edit = {}
}
function dxDrawPanel()


end
function initLoginPanel()
addEventHandler('onClientRender',root,dxDrawPanel)



end
initLoginPanel()
if getElementData(localPlayer, "player:sid") then return end

local sm = {}
sm.moov = 0
sm.object1,sm.object2 = nil,nil

local function removeCamHandler()
if(sm.moov == 1)then
sm.moov = 0
end
end

local function camRender()
if (sm.moov == 1) then
local x1,y1,z1 = getElementPosition(sm.object1)
local x2,y2,z2 = getElementPosition(sm.object2)
setCameraMatrix(x1,y1,z1,x2,y2,z2)
end
end
addEventHandler("onClientPreRender",root,camRender)

function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time)
if(sm.moov == 1)then return false end
sm.object1 = createObject(1337,x1,y1,z1)
sm.object2 = createObject(1337,x1t,y1t,z1t)
setElementAlpha(sm.object1,0)
setElementAlpha(sm.object2,0)
setObjectScale(sm.object1,0.01)
setObjectScale(sm.object2,0.01)
moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad")
moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad")
sm.moov = 1
setTimer(removeCamHandler,time,1)
setTimer(destroyElement,time,1,sm.object1)
setTimer(destroyElement,time,1,sm.object2)
return true
end


shader, blackWhiteTec = dxCreateShader("shaders/blackwhite.fx")
function ****()
dxUpdateScreenSource(screen)
dxSetShaderValue(shader, "screenSource", screen)
end
addEventHandler("onClientRender", root, ****)
function renderLoginBox()
dxDrawImage(0, 0, sx, sy,shader, 0, 0, 0, tocolor(0, 0, 0, 255))
dxDrawImage(sw(0),sh(0),sw(1920),sh(1080),'misc/panel.png')
exports["buttons"]:createCustomButton("", sx * 0.8050, sy * 0.0500, sx * 0.1600, sy * 0.0900, tocolor(255,255,255), false)
dxDrawText("Nie masz konta?\nZa??? je", sx*900/1024, sy*-150/768, sx*640/1024, sy*302/768, tocolor(0, 0, 0), 1, "default-boldt", "center", "center", false)

dxDrawText(guiGetText(data.button[1]), sw(750), sh(479), sw(1788), sh(505), tocolor(255,255,255, 255), 1, "tahoma", "left", "bottom", false, false, false, false, false)
dxDrawText(string.gsub(guiGetText(data.button[2]),'.', '*'), sw(750), sh(519), sw(1788), sh(595), tocolor(255,255,255, 255), 1, "tahoma", "left", "bottom", false, false, false, false, false)
-- dxDrawText("Panel\nAutoryzacji", sw(1448), sh(301), sw(1902), sh(495), tocolor(3, 3, 3, 255), 3.00, "tahoma", "center", "top", false, false, false, false, false)
if isMouseIn(sw(700), sh(599), sw(242), sh(117)) then

--dxDrawRectangle(sw(700), sh(599), sw(242), sh(117), tocolor(255, 0, 0, 133), false)
dxDrawText("Zaloguj si?", sw(-120), sh(599), sw(1788), sh(716), tocolor(255,255,255, 255), 2.00, "tahoma", "center", "center", false, false, false, false, false)
else
dxDrawText("Zaloguj si?", sw(-120), sh(599), sw(1788), sh(716), tocolor(0,0,0, 255), 2.00, "tahoma", "center", "center", false, false, false, false, false)
end
if isMouseIn(sx * 0.8050, sy * 0.0500, sx * 0.1600, sy * 0.0900) then
dxDrawRectangle(sx * 0.8050, sy * 0.0500, sx * 0.1600, sy * 0.0900, tocolor(0, 0, 0, 133), false)
dxDrawText("Stw?rz konto", sw(1646), sh(115), sw(1750), sh(85), tocolor(255,255,255, 255),2.00, "tahoma", "center", "center", false, false, false, false, false)
else
dxDrawText("Stw?rz konto", sw(1646), sh(115), sw(1750), sh(85), tocolor(0,0,0,255), 2.00, "tahoma", "center", "center", false, false, false, false, false)
end


--dxDrawRectangle(sx * 0.0480, sy * 0.3190, sx * 0.060, sy * 0.0220, tocolor(255, 255, 255, 255), false)
-- dxDrawText(" Pierwsza edycja serwera wystartowa?a \n 1 sierpnia 2019r by?a ona za?o?ona\n g?ownie przez oskitmp, goodnight, kerbi\n Aktualnie jest to nasza 4 edycja\n Aktualny zarz?d serwera to \n oskitmp, IVI4T1 i GoodNight", sx * 0.0990, sy * 0.7790, sx * 0.120, sy * 0.0420, tocolor(255, 255, 255), 1.3, "default-boldt", "center", "center", false)


--dxDrawImage(sx * 0.039, sy * 0.0350, sx * 0.1300, sy * 0.2200, "misc/logo.png", AristatesYuvarlak, 0, 0, tocolor(255, 255, 255, 255), false)
if data.misc then
local bit = getSoundFFTData(data.misc, 2048, 3)
for i,v in ipairs(bit) do
rytm2 = math.round((v*320),0)>100 and 100 or math.round((v*320),0)
dxDrawImage( 0, 0, sx, sy, "effects.png", 0, 0, 0, tocolor(255, 255, 255,rytm2*4), false)

if data.info then dxDrawText(data.info, sx*760/1024, sy*740/768, sx*250/1024, sy*255/768, tocolor(237, 0, 0, 255), 1.00, "default-boldt", "center", "center", false) end
--dxDrawText("Elite RPG\nCopyright 2020", sx*470/1024, sy*1125/768, sx*640/1024, sy*302/768, tocolor(255, 255, 255), 0.9, "default-boldt", "center", "center", false)
--dxDrawText("Czy wiesz ?e:", sx * 0.0390, sy * 0.6190, sx * 0.120, sy * 0.0420, tocolor(0, 0, 0), 1.3, "default-boldt", "center", "center", false)


smoothMoveCamera(1216.16, 1019.72, 28.61, 1223.03, 2315.02, 28.61, 1223.03, 2315.02, 28.61, 1223.03, 2315.02, 28.61, 45000)



if data.misc then
local bit = getSoundFFTData(data.misc, 2048, 3)
for i,v in ipairs(bit) do

rytm = math.round((v*320),0)>100 and 100 or math.round((v*320),0)

dxDrawRectangle ( 40,1070, 22, 0.9*rytm*-0.8, tocolor(255, 255, 255, 255), false )
dxDrawRectangle ( 65,1070, 22, 1*rytm*-1, tocolor(255, 255, 255, 255), false )
dxDrawRectangle ( 90,1070, 22, 0.7*rytm*-1, tocolor(255, 255, 255, 255), false )
if musicRandom == 1 then
dxDrawText("Teraz: cypis - *****? PIS", sx*-1018/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
elseif musicRandom == 2 then
dxDrawText("Teraz: L'Aupaire - Rollercoaster Girl (Achtabahn Remix)", sx*-970/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
elseif musicRandom == 3 then
dxDrawText("Teraz: Wiz Khalifa - Black And Yellow ", sx*-1018/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
elseif musicRandom == 4 then
dxDrawText("Teraz: Travis Scott - SICKO MODE ft. Drake (Official Video)", sx*-970/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
elseif musicRandom == 5 then
dxDrawText("Teraz: La Roux - Bulletproof (Gamper & Dadoni Remix)", sx*-980/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
elseif musicRandom == 6 then
dxDrawText("Teraz: Harry Styles - Watermelon Sugar | PXKØ REMIX", sx*-980/1024, sy*1200/768, sx*1280/1024, sy*302/768, tocolor(255, 255, 255), 1, "default-boldt", "center", "center", false)
end
end
end
end
end end



function math.round(number, decimals, method)
decimals = decimals or 0
local factor = 10 ^ decimals
if (method == "ceil" or method == "floor") then return math[method](number * factor) / factor
else return tonumber(("%."..decimals.."f"):format(number)) end
end


addEventHandler("onClientClick", root, function(btn,state)
if btn=="left" and state=="down" then
if isMouseIn(sw(700), sh(599), sw(242), sh(117)) and data.showed then
local login=guiGetText(data.button[1])
local pass=guiGetText(data.button[2])
if string.len(login) < 2 or string.len(pass) < 2 then
return
end
triggerServerEvent("logging:checkAccount", resourceRoot, login, pass)
end
if isMouseIn(sx * 0.8050, sy * 0.0500, sx * 0.1600, sy * 0.0900) and data.showed then
local login=guiGetText(data.button[1])
local pass=guiGetText(data.button[2])
if string.len(login) < 2 or string.len(pass) < 2 then
return
end
if string.len(login) > 22 or string.len(pass) > 30 then
return
end
triggerServerEvent("logging:newAccount", resourceRoot, login, pass)
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", root, renderLoginBox)
removeEventHandler("onClientPreRender",root,camRender)

else
data.info=tostring(info)
setTimer(function() data.info=nil end, 6000, 1)
end
end)

addEventHandler("onClientResourceStart", resourceRoot, function()
if getElementData(localPlayer,"player:logged") then return end
showChat(false)
showCursor(true)
fadeCamera(true)
data.showed=true
setElementAlpha(localPlayer,0)
setPlayerHudComponentVisible ( "all", false )
setElementData(localPlayer,"hud:wloczony",false)
if musicRandom == 1 then
data.misc=playSound("misc/intro.mp3",true) --1
elseif musicRandom == 2 then
data.misc=playSound("misc/Avicii.mp3",true) --2
elseif musicRandom == 3 then
data.misc=playSound("misc/HalseyWallsCouldTalk.mp3",true) --3
elseif musicRandom == 4 then
data.misc=playSound("misc/HalseyNewAmericana.mp3",true) --4
elseif musicRandom == 5 then
data.misc=playSound("misc/ElProfesorBellaCiao.mp3",true) --5
elseif musicRandom == 6 then
data.misc=playSound("misc/DuaLipaDSN.mp3",true) --6
end
setSoundVolume(data.misc, 0.3)
--setPlayerHudComponentVisible("all",true)
guiSetInputMode("no_binds_when_editing")
setElementData(localPlayer,"status","Loguje si?")
setElementData(localPlayer,"player:logged",false)
addEventHandler("onClientRender", root, renderLoginBox)
data.button[1] = guiCreateEdit(sw(750-3), sh(485), sw(212), sh(23), "", false)
guiSetAlpha( data.button[1], 0.0)


data.button[2] = guiCreateEdit(sw(750-3), sh(576), sw(212), sh(23), "", false)
guiSetAlpha( data.button[2], 0.0)
guiEditSetMasked(data.button[2],true)
end)


S_logging

Cytat:


function sprawdzpozycje3(plr)
local x = exports['pystories-db']:dbGet("SELECT interior from pystories_users WHERE id=?",getElementData(plr,"player:sid"))
if x then
return x[1].interior
end
end

function sprawdzfrakcje(plr)
local x = exports['pystories-db']:dbGet("SELECT code from sr_factions WHERE sid=?",getElementData(plr,"player:sid"))
if x and #x == 1 then
return x[1].code
else
return nil
end
end

function sprawdzdom(plr)
local x = exports['pystories-db']:dbGet("SELECT * from houses WHERE OWNER=?",getElementData(plr,"player:sid"))
if x and #x > 0 then
local t = split(x[1].wejscie, ",")
return t
end
return false
end

function sprawdzpremium(plr)
local resultA=exports["pystories-db"]:dbGet("SELECT * FROM pystories_users WHERE id=? AND premiumdate>NOW() LIMIT 1", getElementData(plr,"player:sid"))
if resultA and #resultA > 0 then
return resultA[1]
else
return false
end
end

addEvent("logging:checkAccount", true)
addEventHandler("logging:checkAccount", resourceRoot, function(login,pass)
if string.len(login) < 3 or string.len(pass) < 3 then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Wype?nij wszystkie pola!")
return
end
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_users WHERE login=?", login)
if result and #result > 0 then
if result[1].login == login and result[1].pass == md5(pass) then
local query=exports["pystories-db"]:dbSet("UPDATE pystories_users SET pass=? WHERE login=?",teaEncode(pass,"Ag34mgr3nfs4fnma345mraer3mf2"),login)
triggerClientEvent(client, "logging:result", resourceRoot, false, "Zaaktualizowano twoj profil! Zaloguj sie ponownie!")
return
end
if result[1].login == login and result[1].pass == teaEncode(pass,"12rqrfpn30iaoupbp3bcvc") then
local query=exports["pystories-db"]:dbSet("UPDATE pystories_users SET pass=? WHERE login=?",teaEncode(pass,"Ag34mgr3nfs4fnma345mraer3mf2"),login)
triggerClientEvent(client, "logging:result", resourceRoot, false, "Zaaktualizowano twoj profil! Zaloguj sie ponownie!")
return
end
if getPlayerSerial(client) ~= "61C444C86559CAD6B8F86EBB13CBC6E3" then
if result[1].login == login and result[1].blokada == 1 then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Twoje konto zosta?o zablokowane, poniewa? ?ama?o ono regulamin serwera!")
cancelEvent()
return
end
end
if result[1].login == login and result[1].pass == teaEncode(pass,"pqbf39cb79buIUOACVBppeffefc") then
for i,player in pairs(getElementsByType("player")) do
if getElementData(player,"player:sid") == result[1].id then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Kto? jest zalogowany na to konto!!!")
cancelEvent()
return
end
end
if getPlayerSerial(client) ~= "61C444C86559CAD6B8F86EBB13CBC6E3" then
end
if result[1].login2 == false then
setPlayerName(client, login)
else
setPlayerName(client, result[1].login2)
outputChatBox("Wykupiono us?uge zmiana pseudonimu, tw?j nick to: "..result[1].login2.."", client, 255, 255, 255)
end
setElementData(client, "player:sid", result[1].id)
triggerClientEvent(client, "logging:result", resourceRoot, false, "Zalogowa?e? si? pomy?lnie!")
triggerClientEvent(client, "logging:result", resourceRoot, true, nil)
triggerEvent("SprawdzDom",root,client)
--setElementData(client,"player:organization:spawn",sprawdzorganizacje(client))
--setElementData(client,"player:pozycja:spawn",sprawdzpozycje(client))
--setElementData(client,"player:pozycja:dimension",sprawdzpozycje2(client))
--setElementData(client,"player:pozycja:interior",sprawdzpozycje3(client))
setElementData(client,"player:dom:spawn",sprawdzdom(client))
setElementData(client,"player:premium",sprawdzpremium(client))
setElementData(client,"player:frakcja",sprawdzfrakcje(client))
setElementData(client, "player:logged", true)

if result[1].register_serial == false then
local query=exports["pystories-db"]:dbSet("UPDATE pystories_users SET register_serial=? WHERE login=?",getPlayerSerial(client),login)
end
local logs=exports["pystories-db"]:dbSet("INSERT INTO pystories_logs_login (name,serial,data) VALUES (?,?,NOW())", string.format(login.."("..result[1].id..")"),getPlayerSerial(client))
else
triggerClientEvent(client, "logging:result", resourceRoot, false, "Podane dane s? nieprawid?owe.")
end
else
triggerClientEvent(client, "logging:result", resourceRoot, false, "Podany login nie istnieje w bazie.")

end
end)

addEvent("logging:newAccount", true)
addEventHandler("logging:newAccount", resourceRoot, function(login,pass)
if string.find(login, "?") or string.find(login, "!") or string.find(login, "@") or string.find(login, "#") or string.find(login, "$") or string.find(login, "%") or string.find(login, "^") or string.find(login, "&") or string.find(login, "*") or string.find(login, "(") or string.find(login, ")") or string.find(login, "-") or string.find(login, "_") or string.find(login, "=") or string.find(login, "+") or string.find(login, "~") or string.find(login, "`") or string.find(login, "<") or string.find(login, ">") or string.find(login, ",") or string.find(login, ".") or string.find(login, "/") or string.find(login, "|") or string.find(login, "?") or string.find(login, "?") or string.find(login, "?") or string.find(login, "?") or string.find(login, "?") or string.find(login, "?") or string.find(login, "?") or string.find(login, "!") then
triggerClientEvent(client, "logging:result", resourceRoot, true, "Tw?j nick zawiera niedozwolone znaki!")
return end
if string.len(login) > 22 or string.len(pass) > 22 and string.len(login) < 4 or string.len(pass) < 4 then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Login/Has?o musz? mie? mniej ni? od 4 do 22 znak?w.")
return
end
local result=exports["pystories-db"]:dbGet("SELECT * FROM pystories_users WHERE login=?", login)
if result and #result > 0 then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Podany login ju? istnieje w bazie.")
else
local query=exports["pystories-db"]:dbSet("INSERT INTO pystories_users (login,pass,register_serial) VALUES (?,?,?)", login, teaEncode(pass,"pqbf39cb79buIUOACVBppeffefc"),getPlayerSerial(client))
if query then
triggerClientEvent(client, "logging:result", resourceRoot, false, "Pomy?lnie zarejestrowa?e?(a?) si?!")
setElementData(client, "HakerPseudoli1", 0)
setElementData(client, "HakerPseudoli2", 0)
setElementData(client, "HakerPseudoli3", 0)
setElementData(client, "Mast3000", 0)
setElementData(client, "Psychiatra",0)
setElementData(client, "player:logged", true)


end
end
end)




Ostatnio zmieniony przez Mikro16 2020-12-31, 16:43, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-12-31, 16:23


TheSebaPL

Mod-team






Wiek: 21
Na forum: 3098 dni
Posty: 964

Piwa: 3102

Respekt: 640,5
Respekt: 640,5Respekt: 640,5

Mikro16, popraw zdj?cie.

Postaw piwo autorowi tego posta
 

 
Tagi: panel :: logowania :: east :: rpg
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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