Well, with that, I can create an empty table, but I don't know hot to add diferent values to that table, like numbers, strings, and subtables, and later pass it as a parameter in the function call.Thanks.

If people who knows how to do it explained to you how to do it right away (saving you hours of having to figure it out by yourself) the value of their lives would drop considerably because knowing that is mostly all they are worth.

If people who knows how to do it explained to you how to do it right away (saving you hours of having to figure it out by yourself) the value of their lives would drop considerably because knowing that is mostly all they are worth.

'saving you hours' See this is the problem, force feed me information without me having to lift a finger as I am so lazy.The OP did not ask the question in a way which would be considered smart and also has information missing. How I interpret this is that the OP wants information force feed and this will not stop until the cycle is stopped in addition they also consider their time more important than mine as they can not be bothered to look for the information instead the first action is to ask. If there is not an answer to questions about Lua in PiL or the manual or if you have at least looked and can not find the information then I would personally be more forth coming with answers. As it happens both the links posted (which the OP should really have read first) give the 'right way' of doing what was requested and now at least the OP will now where to look for the information.

Who do you think told everyone else how to use Lua?

OP: Let me know if you figure it out, I'm interested in knowing this too.

Well RTFM or ask questions and provide information showing you have at least made an effort to find the data.

Never assume you areentitledto an answer. You are not; you aren't, after all, paying for the service. You will earn an answer, if you earn it, by asking a substantial, interesting, and thought-provoking question one that implicitly contributes to the experience of the community rather than merely passively demanding knowledge from others

As a personal rule, if I know how to solve something that somebody asked, I just try to help him, telling how I solved that problem.
But if I have to do research just to help someone, then I just ignore the post.
I don't have any problem sharing knowledge of something that I know.

If people who knows how to do it explained to you how to do it right away (saving you hours of having to figure it out by yourself) the value of their lives would drop considerably because knowing that is mostly all they are worth.

Heh, sorry for the random link. To be honest it's been too long since I've done any raw lua stuff in c to have really commented more usefully. I just tend to use luabind for everything nowadays.