Shoutbox

Noob - Need help developing scripts - 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: Noob - Need help developing scripts (/showthread.php?tid=62540)

Noob - Need help developing scripts by fidoboy on 07-04-2006 at 09:05 PM

I'm trying to create my first script for MPL but when i save it and click Apply it shows a message saying that the script is damaged or i have not enough permissions to execute scripts :S What is wrong??

Many thanks in advance,

.:FiDo:.


RE: Noob - Need help developing scripts by tbcat on 07-04-2006 at 09:08 PM

Something is not ok with the code syntax... for example check the "(" ")" and that kind of things if you think the code is correct...


RE: Noob - Need help developing scripts by fidoboy on 07-04-2006 at 09:09 PM

This is my code:

quote:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage){
    sMessage = sMessage.replace("do"," C ")
    sMessage = sMessage.replace("re"," D ")
    sMessage = sMessage.replace("mi"," E ")
    sMessage = sMessage.replace("fa"," F ")
    sMessage = sMessage.replace("sol"," G ")
    sMessage = sMessage.replace("la"," A ")
    sMessage = sMessage.replace("si"," B ")
    sMessage = sMessage.replace("Do"," C ")
    sMessage = sMessage.replace("Re"," D ")
    sMessage = sMessage.replace("Mi"," E ")
    sMessage = sMessage.replace("Fa"," F ")
    sMessage = sMessage.replace("Sol"," G ")
    sMessage = sMessage.replace("La"," A ")
    sMessage = sMessage.replace("Si"," B ")
     return sMessage;
}

RE: Noob - Need help developing scripts by Ezra on 07-04-2006 at 09:10 PM

Are you logged in as Administrator?

I think you need to be administrator to be abled to run scripts (not sure)


RE: Noob - Need help developing scripts by fidoboy on 07-04-2006 at 09:11 PM

Yes my user is administrator..


RE: Noob - Need help developing scripts by foaly on 07-04-2006 at 09:17 PM

well it's not the script... it didn't error when i tried it...


RE: Noob - Need help developing scripts by craig2k5 on 07-04-2006 at 09:19 PM

does this with me sumtimes :^) i just copy the code delete and start a new script, seems to work fine


RE: RE: Noob - Need help developing scripts by fidoboy on 07-04-2006 at 09:45 PM

quote:
Originally posted by craig2k5
does this with me sumtimes :^) i just copy the code delete and start a new script, seems to work fine


You are right, i've deleted the script and created it again and now it works fine. I think that there is a small bug in MPL.

.:FiDo:.
RE: Noob - Need help developing scripts by J-Thread on 07-05-2006 at 10:19 AM

Probably a problem with encoding / line endings...


RE: Noob - Need help developing scripts by RaceProUK on 07-05-2006 at 10:53 AM

Where are the semi-colons?