hmaster
Senior Member
Posts: 716 Reputation: 24
33 / /
Joined: Nov 2004
|
RE: Whats wrong with that var declaration?
quote: Originally posted by RaceProUK
code: var x_img = 1;
function OnEvent_Timer(sTimerId) {
if (sTimerId == "slider" && Messenger.MyStatus == 3){
x_img++;
if (x_img == 4) {
x_img = 0;
Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online.jpg";
}
else { Messenger.MyDisplayPicture = MsgPlus.ScriptFilesPath + "\\images\\online" + x_img + ".jpg";
MsgPlus.AddTimer("slider", 20000);
}
}
}
Edit: Don't hate me because I streamline code
Just to let you know if you are going to use that theres a missing '{'
This post was edited on 08-17-2006 at 09:03 PM by hmaster.
|
|