23.08.2014, 16:31
Hello guys. I'd like to add more languages to my server, but i don't like the normal style with if statemens, and etc..
I just dont like it, cuz it messes up the code, it does not look good for me. So i tought it would be cool to read the language files from the scriptfiles folder. Every language would have an own file. But i dont know how should i script it, cuz the speed is very important here. I was thinking to script it with the GVar plugin. i compared the speed with the SendClientMessage function and it was way more slower. (I know it wont be faster or equal, but it was slow)
So any suggestion how should i script it?
Код:
if (gLanguage[playerid] == LANG_ENG ) SCM()... else SCM()..
So any suggestion how should i script it?