Jump to content

Gridlist to table


h4x7o0r

Recommended Posts

Hey there, i'm having some issues with retrieving a list.

So considering i'm having a gridlist (maps) populated with some maps. How can i insert that list to a table.

LIke after the for loop to have tabel = { "maps1", "maps2") or something like this.

I tried using something like this but it's not working

Thanks in advance.

Edited by Guest
Link to comment

that's just a part of a script.

  
maps = guiCreateGridList(0.52, 0.04, 0.44, 0.7,true,tabMaps) 
guiGridListSetSelectionMode(maps,2) 
guiGridListAddColumn(maps,"Added maps",1)  
  

Thanks for your reply. Tried what u've suggested.

at for loop Error : Table expected, got userdata.

Link to comment

Thanks for your reply TAPL. This code's working well. It does what i need but with a lil mistake.

i'm using a button to save those settings, when i save settings if i have like 6 maps in the gridlist after that for loop i receive :

those 6 maps + one blank row ( map 1 , map 2 ... map 6 , *BLANK )

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...