GTA Közösség - A magyar GTA fórum
Multi Theft Auto (MTA) => MTA: Szerverfejlesztés => Segítségkérés => A témát indította: Leonardoccs - 2017. április 10. - 17:10:35
-
Sziasztok! már mindent megcsináltam a SocialGaming modhoz, web php, stb sql.. de valamiért semmi visszajelzést sem ad se regisztrációnál.... se bejelentkezésnél... ezeket a hibaüzeneteket adja ki konzolba: (eGaming konzol)
[17:02:15] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:15] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:15] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:15] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:16] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:16] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:16] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:18] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:18] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:18] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:18] WARNING: mx_login/sourceS.lua:315: Bad argument @ \'dbQuery\' [Expected db-connection at argument 1, got boolean]
[17:02:18] WARNING: mx_login/sourceS.lua:316: Bad argument @ \'dbPoll\' [Expected db-query at argument 1, got boolean]
[17:02:18] ERROR: mx_login/sourceS.lua:318: attempt to get length of local \'qh\' (a boolean value)
[17:02:27] [API]/sync_api/sourceS.lua:6: API visszatért \'SIKER\' amit küldött a webszerverre : 1 játékos online.
[17:02:27] INFO: Ellett mentve 0 garázs adata!
[17:03:27] [API]/sync_api/sourceS.lua:6: API visszatért \'SIKER\' amit küldött a webszerverre : 1 játékos online.
[17:03:27] INFO: Ellett mentve 0 garázs adata!
[17:04:27] [API]/sync_api/sourceS.lua:6: API visszatért \'SIKER\' amit küldött a webszerverre : 1 játékos online.
[17:04:27] INFO: Ellett mentve 0 garázs adata!
[17:04:27] INFO: Járművek mentve.
-
Nem jó a MySQL kapcsolódás.
-
Pedig minden jólvan írva...
--[[
********************************************************************************
Project owner: Sanyi
Project name: SocialGaming
Developers: Miki,Xemmer,Dani,Nexus
Bugtracker: http://bugs.sgrp.hu/
Suggestions: http://sgrp.hu/
Version: Closed Source
License: Social release
Status: Stable release
********************************************************************************
--]]
local sqlDatas = {
[\"host\"] = \"164.132.201.166\",
[\"user\"] = \"gtakozossegremegy:) \",
[\"pw\"] = \"gtakozossegremegy:)\",
[\"database\"] = \"u_7228\",
}
function getSQLDatas()
return sqlDatas
end
addEventHandler(\"onResourceStart\", resourceRoot, function()
dbHandler = dbConnect(\"mysql\",\"dbname=\".. getSQLDatas()[\"database\"] ..\";host=\"..getSQLDatas()[\"host\"], getSQLDatas()[\"user\"], getSQLDatas()[\"pw\"], \"autoreconnect=1\")
if not dbHandler then
outputChatBox(\"Mysql kapcsolódás meghiúsult\")
cancelEvent(true)
end
end)
function getConnection()
return dbHandler
end
function SecureSystem()
setElementData(root,\"authKey\",tostring(\"\"))
setElementData(root,\"serverURL\",tostring(\"\"gtakozossegremegy:)\"))
end
addEventHandler(\"onResourceStart\",getResourceRootElement(),SecureSystem)
-
Hát, valamiért mégis csak nem tud csatlakozni a megadott adatokkal.
-
esetleg nemaz a gond hogy itt nincs megadva valamilyen \"key\"?
function SecureSystem()
setElementData(root,\"authKey\",tostring(\"\"))
-
Az authKey az ami alapján a regisztrációs api kapcsolódik. anélkül a php fájl nélkül a regisztráció és a bejelentkezés sem fog működni. a serverURL az maga az api endpoint.
-
próbáltam mindent már, de semmi visszajelzést sem ad, webre feltettem minden PHP-s filet, de a loginrendszer semmi visszajelzést sem ad regisztrációkor.
-
Mert gondolom az api fájljába is belekell nyúlni. milyen php fájlokat pakoltál fel?
-
Ami hozzávan csatolva a modhoz. abból mindent. (Login PHP fájlok mappából mindent felraktam meg a összes mellete lévő htdocs mappából is.)