What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] PS3 script (and some offtopic)

Pages: (2): « First « 1 [ 2 ] Last »
[?] PS3 script (and some offtopic)
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: [?] PS3 script
code:
function setLang(sLanguage) {
    Print(Script.Name + " " + Script.Version + "'s language is \"" + sLanguage + "\""); // if undefined: first-time run
    if(!FileExists(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js")) {
        sLanguage = MsgPlus.UILangCode;
        if(!FileExists(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js")) {
            sLanguage = "en";
        }
    }
    LanguageLoaded = MsgPlus.LoadScriptFile(MsgPlus.ScriptFilesPath + "\\Language\\" + sLanguage + ".js");
    Print(LanguageLoaded,PRIOR_NORMAL);
    if(!LanguageLoaded) {
        EnglishLoaded = MsgPlus.LoadScriptFile(MsgPlus.ScriptFilesPath + "\\Language\\en.js");
        Print(EnglishLoaded,PRIOR_NORMAL);
    }
    Print(sLanguage,PRIOR_IMPORTANT);
    Language();
}


code:
// nl.js

var DayVar = new Array();
var DVar = new Array();
var MonthArray = new Array();
var LngStr = new Array();

Language();

function Language() {

(chunk of code)

}



EDIT::

Hey, the [code /] seems to support tabs now*-)

This post was edited on 08-05-2008 at 12:05 PM by SmokingCookie.
08-05-2008 11:57 AM
Profile PM Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On