addCommandHandler(\"addinterior\",
function(playerSource, commandName, intid, inttype, cost, ...)
if (getElementData(playerSource,\"acc:admin\") >= 6) then
if intid and inttype and cost and (...) then
name = table.concat({...}, \" \")
x,y,z = getElementPosition(playerSource)
intbel = interiorok[tonumber(intid)]
if intbel then
local interiorid = intbel[1]
local ix = intbel[2]
local iy = intbel[3]
local iz = intbel[4]
local marker_int = getElementInterior(playerSource)
local marker_dim = getElementDimension(playerSource)
local query = dbQuery(connection, \"INSERT INTO interiors SET x = ?, y = ?, z = ?, interiorx = ?, interiory = ?, interiorz = ?, name = ?, type = ?, cost = ?, interior = ?, interiorwithin = ?, dimensionwithin = ?, owner = ?\",x, y, z, ix, iy, iz, name, inttype, cost, interiorid, marker_int, marker_dim, 0)
local insertered, _, insertid = dbPoll(query, -1)
if insertered then
loadOneInteriorWhereID(insertid)
end
end
else
outputChatBox(\"Használat:#ffffff /\" .. commandName .. \" [InteriorBelsőID] [tipus] [ár] [név]\", playerSource,61,122,188,true)
outputChatBox(\"Típusok:#ffffff [0 - ház] [1 - biznisz] [2 - önkormányzati] [3 - bérház] [4 - Garázs]\", playerSource,61,122,188,true)
end
end
end
)
Hiba:
Segítséget előre is köszönöm!