Szerző Téma: kapu hiba  (Megtekintve 640 alkalommal)

kapu hiba
« Dátum: 2016. Február 04. - 22:00:32 »
0 Show voters
Sziasztok ez a gondom bajom h nem akar müködni a kapu..
Debug ezt irja... ERROR: Loading script failed: gates/szparkolo.lua:1: unexpected symbol near \'?\'
 
--local objGateg = createObject(3055, 1204.5546875, -1352.7958984375, 13.402052879333, 0, 0, 180)
--exports.pool:allocateElement(objGateg)
-- createObject(3055, 1580.5490234375, -1637.95546875, 13.446516990662, 0, 0, 180)
local open = false
-- Gate code
function usePDFrontGarageGate(thePlayer)
local x, y, z = getElementPosition(thePlayer)
local distance = getDistanceBetweenPoints3D(-2060.5087890625, -160.1748046875, 35.376564025879 x, y, z)
if (distance<=10) and (open==false) then
if (exports.global:hasItem(thePlayer, 64)) then
   open = true
   outputChatBox(\"LSPD Garázs ajtó nyitva 10 másodpercre!\", thePlayer, 0, 255, 0)
   moveObject(objGateg, 1000,-2060.5087890625, -160.1748046875, 35.376564025879 -90, 0, 0)
   setTimer(closePDFrontGarageGate, 10000, 1, thePlayer)
end
end
end
addCommandHandler(\"gate\", usePDFrontGarageGate)
function closePDFrontGarageGate(thePlayer)
setTimer(resetState8, 1000, 1)
moveObject(objGateg, 1000, 1204.5546875, -1352.7958984375, 13.402052879333, 90, 0, 0)
end
function resetState8()
open = false
end

 
Valakinek valami ötlete ?
« Utoljára szerkesztve: 2016. Február 04. - 22:04:29 írta anGeL »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal