NeRo-_- Posted February 24, 2022 Share Posted February 24, 2022 Got this warning: the code 123: local function aktualizujdane() if not isElementWithinColShape(localPlayer,cuboid) then return end for i,v in ipairs(getElementsByType("vehicle",root,true)) do if getElementData(v, "vehicle:gielda",true) then if getElementData(v, "vehicle:id") == getElementData(v, "vehicle:id:G") then local online=znajdzprzezsid(getElementData(v,"vehicle:owner:SID")) if online then jest="#007affDostępny (ID: "..getElementData(online,"id")..")" else jest="#FF0000Niedostępny" end local desc=string.format("#FFFFFFID Auta: #007aff%d\n#FFFFFFPojazd: "..RGBToHex( 0, 122, 255,false).."%s"..RGBToHex(0, 122, 255).."\n#FFFFFFCena: #007aff%d PLN\n#FFFFFFPrzebieg: #007aff%dkm\n#FFFFFFSprzedający: #007aff%s\n#FFFFFFStatus sprzedającego: %s\n#FFFFFFAby sprawdzić informacje nt. tego pojazdu wpisz: #007aff/v.info", tonumber(getElementData(v, "vehicle:id")), getElementData(v, "vehicle:nazwa:G"), tonumber(getElementData(v, "vehicle:cena:G")), getElementData(v,"vehicle:mileage"), getElementData(v,"vehicle:owner:G"), jest) gielda[v] = desc end end end end the code 182: addEventHandler("onClientColShapeHit",cuboid,function(el,md) if not md then return end if el ~= localPlayer then return end if isEventHandlerAdded("onClientRender",root,renderinge) then removeEventHandler("onClientRender",root,renderinge) end addEventHandler("onClientRender",root, renderinge) timerke = setTimer(aktualizujdane,3000,0) end) the code 193: addEventHandler("onClientColShapeLeave",cuboid,function(el,md) if not md then return end if el ~= localPlayer then return end if isEventHandlerAdded("onClientRender",root,renderinge) then removeEventHandler("onClientRender",root,renderinge) end --if isTimer(timerke) then killTimer(timerke) end end) the code 201: addEventHandler("onClientColShapeHit", cuboid, function(el,md) if not md or el ~= localPlayer then return end if wstep then return end wstep=true end) the code 207: addEventHandler("onClientColShapeLeave", cuboid, function(el,md) if getElementData(el,"vehicle:gielda") then gielda[el] = false end if not md or el ~= localPlayer then return end if not wstep then return end local veh=getPedOccupiedVehicle(el) if veh then --setElementData(veh,"vehicle:desc",false) setElementData(veh, "vehicle:gielda",false) end end) Link to comment
Administrators Tut Posted February 24, 2022 Administrators Share Posted February 24, 2022 Locked as requested. Link to comment
Recommended Posts