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: /dom
1. Nie działa komenda /dom
Mam ma?y problem po wpisaniu komendy /dom nic si? nie pokazuje domek si? nie tworzy a ju? jakie? domy s? og?lnie stworzone pystoriers-admins pystories-core i lss_domy s? podpi?te pod acl. Ni?ej dam kod: domy.lua

[lua]
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

local 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["pystories-db"]:dbGet("SELECT * FROM pystories_users WHERE id=?", v.ownerid)
if result and #result > 0 then
local r=result[1]
v.owner_nick = r.login
else
if v.ownerid ~= false then
outputDebugString("B?‚ad domku ID DOMKU#"..v.id)
end
v.owner_nick = "do wynaj?™cia"
end
-- outputDebugString(v.owner_nick)
v.drzwi=split(v.drzwi,",")
for ii,vv in ipairs(v.drzwi) do v.drzwi[ii]=tonumber(vv) end
v.punkt_wyjscia=split(v.punkt_wyjscia,",")
for ii,vv in ipairs(v.punkt_wyjscia) do v.punkt_wyjscia[ii]=tonumber(vv) end
local pickupid=1272
if (not v....