Shoutbox

[help] i need help with my script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [help] i need help with my script (/showthread.php?tid=61700)

[help] i need help with my script by huddo121 on 06-27-2006 at 04:06 AM

hi. i am having trouble with my script. it is a simple script that toasts you  when a contact starts listening to music or it changes.

here is the source
[/code]function OnEvent_ContactMediaChange()
{
    var Notice = Email + "is now listening to" + NewMedia;
    Notice = MsgPlus.RemoveFormatCodes(Notice);
    MsgPlus.DisplayToast(Notice);
}
[/code]

here is the debugging information
[/code]Script has been stopped
Script is starting
Script is now loaded and ready
Function called: OnEvent_ContactMediaChange
Error: 'Email' is undefined.
       Line: 3. Code: -2146823279.
Function OnEvent_ContactMediaChange returned an error. Code: -2147352567 [/code]***this is when he played his first song***[/code]
Function called: OnEvent_ContactMediaChange
Error: 'Email' is undefined.
       Line: 3. Code: -2146823279.
Function OnEvent_ContactMediaChange returned an error. Code: -2147352567[/code] ***we then changed the song to see if the concept was correct, it was.***
[/code]


RE: [help] i need help with my script by devils elbow on 06-27-2006 at 04:47 AM

Hmm, try:

code:
function OnEvent_ContactMediaChange(sEmail, sNewMedia)
{
    var sNotice = sEmail + "is now listening to" + sNewMedia;
    sNotice = MsgPlus.RemoveFormatCodes(sNotice);
    MsgPlus.DisplayToast("", sNotice);
}


RE: [help] i need help with my script by huddo121 on 06-27-2006 at 05:03 AM

i didnt do that but thanks any way devils elbow.

neway. i fixed it and it is now working. the download link is: http://huddo121.googlepages.com/SongReaderv0-1.plsc

screenie [Image: attachment.php?aid=5]