Saml1er Posted March 17, 2014 Share Posted March 17, 2014 Wow. You gave me a perfect example.Thanks Man for solving my problem:) Question: How to add a column like [ "text" ] and its text? Using table.insert/ The best thing about table is that you can insert almost everything in it and there are many ways to insert, it can be column, rows etc. You always don't really need to use table.insert but instead you can do it like this as well: myTable.text2 = "And here comes the second one." -- this dot will help in inserting the text. This inserting method is equivalent to: myTable["text2"] = "And here comes the second one." Link to comment
Anubhav Posted March 17, 2014 Author Share Posted March 17, 2014 Ok. If i use: local gang = getAccountData(source,"safr.Group") local text = guiGetText(memo) tostring(gang).memo = tostring(memo) Will this work properly? I will thank pack and Sam1er alot who helped me the most. Link to comment
Saml1er Posted March 17, 2014 Share Posted March 17, 2014 (edited) Gang is not a table, its a string. local tab = { } local gang = getAccountData(getPlayerAccount(source)),"safr.Group") -- use getElementData since getAccountData is server side function local text = guiGetText(memo) tab[gang] = tostring (text) Edited March 17, 2014 by Guest Link to comment
Anubhav Posted March 17, 2014 Author Share Posted March 17, 2014 ty EDIT: I know i am triggering . Link to comment
Tete omar Posted March 17, 2014 Share Posted March 17, 2014 Locked (as requested by topic owner) Link to comment
Recommended Posts