Jump to content

Recommended Posts

  • Premium

Hallo All

 

I am trying to make a select table and when the player select anything he regive him the same table but without the chosen tab

 

for e.g i do it like that :

 

                local menu01 = {}
                for num1,str1 in ipairs(data01) do
                    table.insert(menu01, str1[1])
                end
                local seltab01 = select_table(menu01, "close")
                if seltab01 == table.getn(menu01) then return end
                wait()
                ---    second chose
                local menu02 = {}
                for num2,str2 in ipairs(data01) do
                    table.insert(menu02, str2[1])
                end
                table.remove(menu02, seltab01)
                local seltab02 = select_table(menu02)
                wait()

 

 

If you're going to do something, then do it right.

Link to comment
https://metin2.dev/topic/6094-lua-tableremove/
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.