Jump to content

Apo

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by Apo

  1. no my meta.xml fix and no problem not work !!!!!!
  2. change to table.insert(cmd[2], {cmd[3], cmd[4], cmd[1]} )
  3. No one can fix that code Guys??!!
  4. not work man i need get table interiors from function getInteriorsList for function getInteriorID
  5. hi , please help me for fixe error [2016-01-29 13:42:32] ERROR: interior-system\s_interior_admin.lua:6: bad argument #1 to 'pairs' (table expected, got boolean) please help me for exports folder house-interiors file house-interiors-inmap have interiors = { [1] = { 3, 975.26, -8.64, 1001.14, 90 , "test1"}, [2] = { 11, 501.84, -67.84, 998.75, 180 , "test2"}, [3] = { 5, 772.43, -5.19, 1000.72, 0 , "test3" }, [4] = { 2, 2517.2119140625, -1296.705078125, 1076.9359130859, 270, "test4" }, [5] = { 3, 965.16015625, -53.212890625, 1001.1245727539, 90, "test5" }, [6] = { 3, 834.61, 7.54, 1004.18, 90 , "test6" }, } function getInteriorsList() return interiors end folder interior-system file s_interior_admin have function getInteriorID( thePlayer, commandName ) local c = 0 local interior = getElementInterior( thePlayer ) local x, y, z = getElementPosition( thePlayer ) local interiors = exports["house-interiors"].getInteriorsList() for k, v in pairs( interiors ) do if interior == v[1] and getDistanceBetweenPoints3D( x, y, z, v[2], v[3], v[4] ) < 10 then outputChatBox( "Interior ID: " .. k, thePlayer ) c = c + 1 end end if c == 0 then outputChatBox( "Interior ID not found.", thePlayer ) end end addCommandHandler( "getinteriorid", getInteriorID )
  6. thank you for all for help i can fix error
  7. Hi guys, please help for fix my error [2016-01-28 12:05:06] ERROR: interior-system\s_interior_admin.lua:362: bad argument #1 to 'pairs' (table expected, got nil) function getInteriorID( thePlayer, commandName ) local c = 0 local interior = getElementInterior( thePlayer ) local x, y, z = getElementPosition( thePlayer ) local interiors = exports["house-interiors"].getInteriorsList() for k, v in pairs( interiors ) do if interior == v[1] and getDistanceBetweenPoints3D( x, y, z, v[2], v[3], v[4] ) < 10 then outputChatBox( "Interior ID: " .. k, thePlayer ) c = c + 1 end end if c == 0 then outputChatBox( "Interior ID not found.", thePlayer ) end end addCommandHandler( "getinteriorid", getInteriorID )
  8. Wasn't I clear? DO YOU SAW THE POSTS ABOVE YOURS? I mean this one: http://i.imgur.com/wn29jzX.jpg
  9. my error failed to find multi theft auto: san anndreas directory . mta:San andreas (including server) must be installed in order to instal mta :script editor how to fix error?
  10. hi guys please help me for how to instal MTA Script editor
×
×
  • Create New...