Jump to content

Wrench 2000

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Wrench 2000

  1. Lol, now working thank you!:D
  2. now i got this error: "attempt to index global 'Map' (a nil value)" dxDrawImageSection(WorldRadar["monX"], WorldRadar["monY"], WorldRadar["width"], WorldRadar["height"], mapX + 50, mapY + 60, WorldRadar["width"]/zoom, WorldRadar["height"]/zoom, WorldRadar["Map"], 0, 0, 0, tocolor(255, 255, 255, 255)) function WorldRadar.start() WorldRadar["Map"] = dxCreateTexture( "map.png") dxSetTextureEdge(WorldRadar["Map"], "border", tocolor(75,144,223)) end what wrong in this?
  3. the WorldRadar exist in a another file WorldRadar = {} WorldRadar["width"] = sX - 20 WorldRadar["height"] = sY - 20 WorldRadar["monX"] = math.floor(sX/2 - WorldRadar["width"]/2) WorldRadar["monY"] = math.floor(sY/2 - WorldRadar["height"]/2) WorldRadar.show = false then why not working?
  4. i got this warning, and error: "rC.lua:40: bad argument @ 'dxDrawImageSection' [Expected material at argument 9, got nil]" - This is the warning msg.. "sC.lua:6: attempt to index global 'WorldRadar' (a nil value)" - This is the error msg.... And code(s): rC.lua:40: - dxDrawImageSection(WorldRadar["monX"], WorldRadar["monY"], WorldRadar["width"], WorldRadar["height"], mapX + 50, mapY + 60, WorldRadar["width"]/zoom, WorldRadar["height"]/zoom, WorldRadar["Map"], 0, 0, 0, tocolor(255, 255, 255, 255)) --- and the sC:lua:6: - Map = {} Map["F11"] = false function Map.start() MiniMap.start() WorldRadar.start() end Map.start() function Map.draw() if Map["F11"] then return end MiniMap.draw() end addEventHandler("onClientRender", root, Map.draw) function Map.stop() end What wrong? How to fix this problems? Thanks the help!
×
×
  • Create New...