Jump to content

Tank 2 Game, a LAN game client/server


Fabry
 Share

Recommended Posts

Sorry, I didn't see your PM, I have to set my new email.

Great work, but you should put the comment near the strings substitute to remember what stand for.

Add comments if you want, personally I open the language file, and, as you can see the number of the $a_lng array correspond to the language file line number.

You should check if the files of language exist, otherwise it gives an error.

Dim $a_lng[_FileCountLines(@ScriptDir & '\language\040C.lng')], $f_ff, $f_nf, $s_lng

_filecountlines gives -1 and the array cannot exist.

No, because the default language (english) is installed when compiled.

btw : I see what you mean, if you just have italian language (for example) then replace the Dim line by that :

$f_ff = FileFindFirstFile(@ScriptDir & '\language\*.lng')
If $f_ff = -1 Then Exit Msgbox(16, 'Error', 'No language file found !')

Dim $a_lng[_FileCountLines(@ScriptDir & '\language\' & FileFindNextFile($f_ff))]

Excuse me if you get an error, I wrote this on my iPod :D

Cheers, FireFox.

Edited by FireFox
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...