GTA Közösség - A magyar GTA fórum

Multi Theft Auto (MTA) => MTA: Szerverfejlesztés => Archívum => A témát indította: kajahun - 2014. December 17. - 19:45:44

Cím: Blipek készítése
Írta: kajahun - 2014. December 17. - 19:45:44
Sziasztok!
Az lenne hogy van egy alap community-s GTA V-ös radarom amire ha berakom ez a scriptet nem tölt be:
 
if setup.blips then
        for _, e in ipairs(getElementsByType(\"blip\")) do   
          if not getElementData(e, \"bigradar.noblip\") then
            r,g,b,a = 255,255,255,200     
            local ex, ey, ez = getElementPosition(e)
            local dist = getDistanceBetweenPoints2D(px,py,ex,ey)
            if dist <= radar.range or setup.blipsoutofrange then
              if dist > radar.range then dist = radar.range end
              local angle = 180-north+findRotation(px,py,ex,ey)
              local blipx, blipy = getDistanceRotation(0, 0, radar.radius*(dist/radar.range), angle)
              local icon = getBlipIcon(e)
              if icon == 0 or icon == 1 then r,g,b,a = getBlipColor(e) end
              blipx = radar.xc+blipx-blip.bhalf
              blipy = radar.yc+blipy-blip.bhalf
              dxDrawImage(blipx, blipy, blip.big, blip.big, \"radar_frire.png\", 0, 0, 0, tocolor(r,g,b,a)) 
              if setup.blipnames then
                local name = getElementData(e, \"bigradar.blipname\")
                if name then dxDrawText(name, blipx+blip.big, blipy+blip.half*radar.scale, blipx, blipy, tocolor(r,g,b,a), blip.textsize, \"default\") end
              end 
            end 
          end 
        end
      end 
min(608 + 154, blipY))
Cím: Blipek készítése
Írta: Xenius - 2014. December 17. - 20:11:15
debugscript 3
Cím: Blipek készítése
Írta: kajahun - 2014. December 17. - 20:13:07
De nem ír ki semmi errort.
Cím: Blipek készítése
Írta: Toxic - 2015. Január 07. - 16:44:17
[gmod]Elavult, zárom.[/gmod]