| Tematy otagowane jako: zalogowania |
| 1. Brak zalogowania |
Witam,
Potrzebuj? pomocy wy?wietla mi si? taki b??d i nie mam poj?cia jak go naprawi?
[21-12-05 12] ERROR: [xyrusek]/dmta_login/s_core.lua:50: call: failed to call 'dmta_xdb:wykonaj' [string "?"]
[21-12-05 12] ERROR: [xyrusek]/dmta_login/s_core.lua:55: call: failed to call 'dmta_xdb:wykonaj' [string "?"]
[21-12-05 12] ERROR: [xyrusek]/dmta_login/s_core.lua:60: call: failed to call 'dmta_xdb:wykonaj' [string "?"]
Za szybk? i pomocn? odpowiedz b?d? wdzi?czny |
| 2. Brak możliwości zalogowania się - Totalnie Polski RPG |
[21-05-11 14] ERROR: [1.3]/DB/sql.lua:100: bad argument #1 to 'mysql_num_rows' (mysqlResult expected, got nil)
[21-05-11 14] ERROR: [1.3]/tpr-sql_ban/s.lua:18: call: failed to call 'DB:num_rows' [string "?"]
[21-05-11 14] ERROR: [1.3]/tpr-sql_ban/s.lua:18: attempt to compare boolean with number
[21-05-11 14] ERROR: [1.3]/DB/sql.lua:100: bad argument #1 to 'mysql_num_rows' (mysqlResult expected, got nil)
[21-05-11 14] ERROR: [1.3]/logowanie/server.lua:68: call: failed to call 'DB:num_rows' [string "?"]
[21-05-11 14] ERROR: [1.3]/logowanie/server.lua:68: attempt to compare boolean with number
Takie logi, nie da si? zalogowa? po wpisaniu loginu i has?a |
| 3. Panel logowania nie pokazuje miejsca do zalogowania się |
Witam chce si? zalogowa? ale nie ma nigdzie linijki do wpisania loginu i hasla
dam pare kod?w bo nw jaki do tego s?u?y[lua]if getElementData(localPlayer, "player:sid") then return end
local root = getRootElement()
local resourceRoot = getResourceRootElement(getThisResource())
local screenWidth, screenHeight = guiGetScreenSize()
local screenW,screenH = guiGetScreenSize()
local blurStrength = 20
local myScreenSource = dxCreateScreenSource(screenWidth, screenHeight)
blurShader, blurTec = dxCreateShader("shaders/BlurShader.fx")
function renderblur()
if blur == true then
dxUpdateScreenSource(myScreenSource)
dxSetShaderValue(blurShader, "ScreenSource", myScreenSource);
dxSetShaderValue(blurShader, "BlurStrength", blurStrength);
dxSetShaderValue(blurShader, "UVSize", screenWidth, screenHeight);
dxDrawImage(0, 0, screenWidth, screenHeight, blurShader)
end
end
addEventHandler("onClientRender", root, renderblur)
addEventHandler("onClientResourceStop", resourceRoot,
function()
if blurShader and isElement(blurShader) then
destroyElement(blurShader)
blurShader = nil
end
end)
x,y=2513.58, 1282.80-- my width
intro_step=math.random(0,850)
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 ... |
| 4. Blokowanie zalogowania sie na to samo konto w tym samym czas |
Witam potrzebuje pomocy, jak zablokowac logowanie sie na to samo konto w tym samym czasie w sensie jesli gracz jeden jest zalogowany ?eby drugi nie mogl sie zalogowac kod tutaj:
[lua]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(pass) then
local query=exports["ogrpg-db"]:dbSet("UPDATE ogrpg_users SET pass=? WHERE login=?",teaEncode(pass,"Ryjek"),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,"Ryjek") then
setElementData(getPlayerFromName(login),"zalogowany",true)
setPlayerName(client, login)
setElementData(client, "player:uid", result[1].id)
triggerClientEvent(client, "logging:result", resourceRoot, true, nil)
triggerEvent("SprawdzDom",root,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"]:d... |
|