Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pokazują.
1. lss-domy zapisują się w bazie, ale się nie pokazują.
Mam taki problem, ot?? przerabiam sobie domki, dok?adnie lss-domy z IYW i wszystko dobrze podpi??em, w debugu nie ma nic innego pr?cz ?adowania domk?w, w?a?nie gdzie zawsze pisz? za?adowanych domk?w 0, a w bazie danych mam dodane 3 domki:
[img]https://i.imgur.com/f2qYyYl.png[/img]

Strona serwera:

[code]--[[
Domy do wynajecia

@author Lukasz Biegaj <[email protected]>
@copyright 2010-2013 Lukasz Biegaj <[email protected]>
@license Dual GPLv2/MIT
]]--
--[[

setTimer ( function()
local time = getRealTime()
local hours = time.hour
local minute = time.minute
if tonumber(hours) == 23 and tonumber(minute) == 59 then
outputDebugString("* Zresetowano domki *")
restartResource(getThisResource())
end
end, 999*60, 0 )
--]]

domy={}

local function usunDom(id)
if isElement(domy[id].wyjscie) then destroyElement(domy[id].wyjscie) end
if isElement(domy[id].wejscie) then destroyElement(domy[id].wejscie) end
if isElement(domy[id].cs) then destroyElement(domy[id].cs) end
if isElement(domy[id].text) then destroyElement(domy[id].text) end
domy[id]=nil
end

function dodajDom(v,fast)

if not interiory[v.interiorid] then return false end
-- if tonumber(v.id)==151 then
-- outputChatBox("151")
-- end

--outputDebugString(tostring(v.ownerid))
if domy[v.id] then
usunDom(v.id)
end
local result=exports["ogrpg-db"]:dbGet("SELECT * FROM ogrpg_users WHERE id=?", v.ownerid)
...