Overkillz Posted August 27, 2015 Share Posted August 27, 2015 Hey guys, Im trying to set a list of values defined by me, but it drops me a message gData = {} vari = {"A","b","c","d","e"} for i=1,5 do gData[i] = " "..vari end showCursor(true) function listLetters() botonLib(button,x1,y1,x2,y2,"Select Language",2,60,60,60,255,255,255,255,false) listLib(gridlist,gData,x11,y11,x22,y22,3,50,0,255,255) end addEventHandler("onClientRender",getRootElement(),listLetters) DebugScript 3 drops me this message attempt to concatenate global 'vari' (a tabke value) I hope u can help me, thanks Link to comment
KariiiM Posted August 27, 2015 Share Posted August 27, 2015 Which line the error exist and what are you trying to do. it's a full code or part of? because there's something not defined as i see Link to comment
Overkillz Posted August 27, 2015 Author Share Posted August 27, 2015 Well, I have noticed that I did something wrong, anyways, I got other problem which drops me this: These lines make reference to countryName = { 1 = "English", Script: gData = {} countryLang = { 1 = "English", 2 = "Español", 3 = "官話/官话", 4 = "العربيَّة", 5 = "Português", 6 = "Русский", 7 = "日本語", 8 = "Deutsch", 9 = "Indonesia", 10 = "한국어", 11 = "Français", 12 = "Français", 13 = "Italiano", 14 = "Polski", } for i=1,14 do gData[i] = ""..countryLang end showCursor(true) function langSystem() libBoton(button,x1,x2,x11,x22,"Select Language",2,60,60,60,255,255,255,255,false) libList(gridlist,gData,x111,x222,xa1,xa2,3,50,0,255,255) end addEventHandler("onClientRender",getRootElement(),langSystem) Link to comment
TAPL Posted August 28, 2015 Share Posted August 28, 2015 countryLang = { [1] = "English", [2] = "Español", [3] = "官話/官话", [4] = "العربيَّة", [5] = "Português", [6] = "Русский", [7] = "日本語", [8] = "Deutsch", [9] = "Indonesia", [10] = "한국어", [11] = "Français", [12] = "Français", [13] = "Italiano", [14] = "Polski", } Link to comment
Overkillz Posted August 28, 2015 Author Share Posted August 28, 2015 countryLang = { [1] = "English", [2] = "Español", [3] = "官話/官话", [4] = "العربيَّة", [5] = "Português", [6] = "Русский", [7] = "日本語", [8] = "Deutsch", [9] = "Indonesia", [10] = "한국어", [11] = "Français", [12] = "Français", [13] = "Italiano", [14] = "Polski", } Thanks man, it looks fixed Always I forgot : [#] Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now