Hi.
I managed the func pc.get_language() to get the lang from db db and choose the right translate_xx.lua. But i got the following problem:
when 9006.chat."teste" begin ----> No errors !
when 9006.chat.gameforge.arena_manager._140_sayTitle begin ---> No errors !
when 9006.chat.gameforge[pc.get_language()].arena_manager._140_sayTitle begin --> This way, give me the begin-end clause erro. Just because i added [pc.get_language()]
If i use it on say(gameforge[pc.get_language()].arena_manager._140_sayTitle) it works to..
If someone can help would be nice.. I dont know what can i do now.
I managed the func pc.get_language() to get the lang from db db and choose the right translate_xx.lua. But i got the following problem:
when 9006.chat."teste" begin ----> No errors !
when 9006.chat.gameforge.arena_manager._140_sayTitle begin ---> No errors !
when 9006.chat.gameforge[pc.get_language()].arena_manager._140_sayTitle begin --> This way, give me the begin-end clause erro. Just because i added [pc.get_language()]
If i use it on say(gameforge[pc.get_language()].arena_manager._140_sayTitle) it works to..
If someone can help would be nice.. I dont know what can i do now.