Witam, posiadam panel logowania ogrpg, usuwam z niego resp i pr?buje doda? pozycje, lecz ca?y czas co? wyskakuje w db. Je?eli kto? by mnie naprowadzi? odwdzi?czy?bym si?
Usuwasz instrukcj? warunkow? if isMouseIn(...) a co z tym si? wi??e czyli dane rectangle czy co tam masz te? usuwasz
Wywali?em po prostu ca?e c_zone, a w c_logging w tym miejscu:
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)
local time = getRealTime()
setTime(time.hour,time.minute)
g.user.visible = false
g.pass.visible = false
g.pass2.visible = false
removeEventHandler("onClientRender", root, renderLoginBox)
else
data.info=info
data.tick=getTickCount()+5000
end
end)
usun??em przechodzenie do c_zone tylko od razu, ?eby wczytywa?o dane.
I teraz tak zrobi?em:
addEvent("logging:result", true)
addEventHandler("logging:result", resourceRoot, function(value,info)
if not info then info="" end
if value then
data.showed=false
local time = getRealTime()
setTime(time.hour,time.minute)
g.user.visible = false
g.pass.visible = false
g.pass2.visible = false
stopSound(data.misc)
showChat(true)
showCursor(false)
setElementAlpha(localPlayer,255)
showPlayerHudComponent("all",false)
showPlayerHudComponent("radar",false)
showPlayerHudComponent("crosshair",true)
showPlayerHudComponent("weapon",false)
showPlayerHudComponent("health",false)
showPlayerHudComponent("breath",false)
showPlayerHudComponent("ammo",false)
setTimer(triggerEvent, 250, 1, "gui:start", localPlayer)
triggerServerEvent("logging:checkAccount", resourceRoot, login, pass)
triggerServerEvent("core:spawnPlayer", localPlayer)
setElementData(localPlayer,"player:spawn",{-1971.47, 137.93, 27.69+0.1})
removeEventHandler("onClientRender", root, renderLoginBox)
else
data.info=info
data.tick=getTickCount()+5000
end
end)
w debugu czysto ale zatrzymuje sie kamera, wylacza sie wszystko tak jak powinno ale nie respi i nie wczytuje danych.
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