What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Whats wrong with that var declaration?

Whats wrong with that var declaration?
Author: Message:
SmashD
Junior Member
**

Avatar

Posts: 50
Reputation: 1
Joined: Aug 2004
O.P. Huh?  Whats wrong with that var declaration?
code:
function OnEvent_Timer(slider){
if (Messenger.MyStatus == 3){
var x_img = x_img + 1;
if(x_img == 1) {
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online2.jpg";
}
else if(x_img == 2)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online3.jpg";
}
else if(x_img == 3)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online4.jpg";
}
else if(x_img == 4)
{
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online.jpg";
var x_img = 0;
}
  MsgPlus.AddTimer("slider", 20000);
  return Message; 
}
}

It's triggered by an AddTimer - works nicely, but I am unable to figure out why the x_img variable isn't correct... :(
08-17-2006 01:12 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Whats wrong with that var declaration? - by SmashD on 08-17-2006 at 01:12 PM
RE: Whats wrong with that var declaration? - by mickael9 on 08-17-2006 at 01:18 PM
RE: Whats wrong with that var declaration? - by markee on 08-17-2006 at 01:24 PM
RE: Whats wrong with that var declaration? - by SmashD on 08-17-2006 at 01:28 PM
RE: Whats wrong with that var declaration? - by RaceProUK on 08-17-2006 at 02:24 PM
RE: Whats wrong with that var declaration? - by markee on 08-17-2006 at 02:32 PM
RE: Whats wrong with that var declaration? - by RaceProUK on 08-17-2006 at 08:38 PM
RE: Whats wrong with that var declaration? - by hmaster on 08-17-2006 at 08:44 PM
RE: Whats wrong with that var declaration? - by RaceProUK on 08-17-2006 at 08:48 PM
RE: Whats wrong with that var declaration? - by hmaster on 08-17-2006 at 09:02 PM
RE: RE: Whats wrong with that var declaration? - by CookieRevised on 08-18-2006 at 12:00 AM
RE: Whats wrong with that var declaration? - by Stigmata on 08-18-2006 at 12:13 AM


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