Jump to content

الأتصآل بقآعدة البيآنأت


Recommended Posts

سلآم عليكم

شبآب انا حملت سكربت الدخول

لآكن التسجيل بالموقع و اذا تبي تدخل لآزم بأسم الحسآب الي بالموقع و الرمز

هذا الكوود

  
-[[dbname]]serverContainer.Settings.user = 'u960889733_vb' 
--[[pass]]serverContainer.Settings.pass = 'pass' 
--[[host]]serverContainer.Settings.host = 'mysql.hostinger.ae' 
--[[name]]serverContainer.Settings.name = 'u960889733_vb' 
-- only for example ;p 
-- [url=http://lars.projectx-gaming.net/]http://lars.projectx-gaming.net/[/url] 
  
  
  
serverContainer.startResource = function() 
    local connection = dbConnect('mysql', 'dbname='..serverContainer.Settings.name..';host='..serverContainer.Settings.host, serverContainer.Settings.user, serverContainer.Settings.pass) 
    if connection then 
        outputDebugString('[_Login Panel]: Could connect to the mysql server') 
        serverContainer.connection = connection; 
    else 
        outputDebugString('[_Login Panel]: Couldn\'t connect to the mysql server') 
    end 
end 
  

و بالconfig.php

حق الموقع هالمعلومات

  
$config['Database']['dbname'] = 'u960889733_vb'; 
$config['MasterServer']['servername'] = 'mysql.hostinger.ae'; 
$config['MasterServer']['port'] = 3306; 
$config['MasterServer']['username'] = 'u960889733_vb'; 
$config['MasterServer']['password'] = 'pass'; 
  

نفس المعلومات

و المشكلة يقولي خطأأ

Link to comment

شبآب يووم تقفل المنتدى :#

خراب من الاستضآآفة ضبط الاتصآل بس يوم خرب علقت القآعدة

بس يوم رجع الموقع .,~

يقول خربآآآن

restart login

[20:08:07] restart: Requested by Console

[20:08:07] restart: Resource restarting...

[20:08:07] Stopping login

[20:08:07] Starting login

[20:08:07] ERROR: [testscripts]\login\Server.lua:22: dbConnect failed; Unknown M

ySQL server host 'mysql.hostinger.ae' (0)

[20:08:07] INFO: [_Login Panel]: Couldn't connect to the mysql server

[20:08:07] login restarted successfully

وربي متأكد 100%

حتى الهوست كلمت الدعم فيه وقآلولي نفس الي حآآطه بالضببط

Edited by Guest
Link to comment

اخوي سويت بالسطر 11 مآسار شي

بس سطر 2 ما فهمت منك

start login

[00:42:39] start: Requested by Console

[00:42:39] Resource 'login' changed, reloading and starting

[00:42:39] Starting login

[00:42:39] ERROR: [testscripts]\login\Server.lua:22: dbConnect failed; Unknown M

ySQL server host 'mysql.hostinger.ae' (0)

[00:42:39] INFO: [_Login Panel]: Couldn't connect to the mysql server

[00:42:39] start: Resource 'login' started

يقولي كذا

_Login Panel

وش دخل ذا ؟؟

Link to comment

--[[dbname]]serverContainer.Settings.user = 'u960889733_vb' 
--[[pass]]serverContainer.Settings.pass = 'pass' 
--[[host]]serverContainer.Settings.host = 'mysql.hostinger.ae' 
--[[name]]serverContainer.Settings.name = 'u960889733_vb' 
-- only for example ;p 
-- [url=http://lars.projectx-gaming.net/]http://lars.projectx-gaming.net/[/url] 
  
  
  
serverContainer.StartResource = function() 
    local connection = dbConnect('mysql', 'dbname='..serverContainer.Settings.name..';host='..serverContainer.Settings.host, serverContainer.Settings.user, serverContainer.Settings.pass) 
    if connection then 
        outputDebugString('[_Login Panel]: Could connect to the mysql server') 
        serverContainer.connection = connection; 
    else 
        outputDebugString('[_Login Panel]: Couldn\'t connect to the mysql server') 
    end 
end 

جربه كذا , واذا ما ضبط فإن الموقع خربان ذذ

Link to comment

مشكور اخوي

الحين طلع خطأ ثآآني

  
  
serverContainer.loginClient = function(user, pass) 
    local qh = dbQuery(serverContainer.connection,'SELECT * FROM mybb_users WHERE username = ?',user) 
    local result, row, errmsg = dbPoll ( qh, 5000 ) 
    if row > 0 then 
        for id, result in ipairs(result) do 
            local salt = result['salt'] 
            local username = result['username'] 
            local password = result['password'] 
            if salt and username and password then 
                local newPass = md5(md5(salt):lower()..md5(pass):lower()):lower() 
                if newPass == password then 
                    triggerClientEvent(source,'onClientSuccessfullyLogin',source) 
                    outputChatBox('#ff6666[sERVER]#ffffff You have successfully login.', source,1,1,1,true) 
                else 
                    outputChatBox('#ff6666[sERVER]#ffffff This account doesn\'t exists or the password is wrong.', source,1,1,1,true) 
                end 
            end 
        end 
    end 
end 
  
addEvent('onClientLogins', true) 
addEventHandler('onClientLogins', root, serverContainer.loginClient) 
  
  
  

[14:07:37] WARNING: [testscripts]\login\Server.lua:32: Bad argument @ 'dbQuer

y' [Expected db-connection at argument 1, got nil]

[14:07:37] WARNING: [testscripts]\login\Server.lua:33: Bad argument @ 'dbPoll

' [Expected db-query at argument 1, got boolean]

[14:07:37] ERROR: [testscripts]\login\Server.lua:34: attempt to compare numbe

r with nil

Link to comment
  
    local qh = dbQuery(serverContainer.connection > connection,'SELECT * FROM mybb_users WHERE username = ?',user) 
  
  

= [21:17:27] ERROR: [testscripts]\cg_login\Server.lua:31: attempt to compare two n

il values

  
local qh = dbQuery(connection,'SELECT * FROM mybb_users WHERE username = ?',user) 
  

= [21:15:39] WARNING: [testscripts]\cg_login\Server.lua:31: Bad argument @ 'dbQuer

y' [Expected db-connection at argument 1, got nil]

[21:15:39] WARNING: [testscripts]\cg_login\Server.lua:32: Bad argument @ 'dbPoll

' [Expected db-query at argument 1, got boolean]

[21:15:39] ERROR: [testscripts]\cg_login\Server.lua:33: attempt to compare numbe

r with nil

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...