Multi language script suggestion
#1

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..
Код:
if (gLanguage[playerid] == LANG_ENG )
   SCM()...
else
   SCM()..
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?
Reply


Messages In This Thread
Multi language script suggestion - by kadaradam - 23.08.2014, 16:31
Re: Multi language script suggestion - by theLegion - 23.08.2014, 16:32
Re: Multi language script suggestion - by kadaradam - 23.08.2014, 16:42

Forum Jump:


Users browsing this thread: 1 Guest(s)