Noob - Need help developing scripts |
Author: |
Message: |
fidoboy
New Member
Posts: 7
52 / / –
Joined: Jul 2006
|
O.P. Noob - Need help developing scripts
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 What is wrong??
Many thanks in advance,
.:FiDo:.
This post was edited on 07-04-2006 at 09:05 PM by fidoboy.
|
|
07-04-2006 09:05 PM |
|
|
tbcat
Junior Member
Posts: 51
Joined: Oct 2004
|
RE: Noob - Need help developing scripts
Something is not ok with the code syntax... for example check the "(" ")" and that kind of things if you think the code is correct...
|
|
07-04-2006 09:08 PM |
|
|
fidoboy
New Member
Posts: 7
52 / / –
Joined: Jul 2006
|
O.P. RE: Noob - Need help developing scripts
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;
}
|
|
07-04-2006 09:09 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Noob - Need help developing scripts
Are you logged in as Administrator?
I think you need to be administrator to be abled to run scripts (not sure)
This post was edited on 07-04-2006 at 09:11 PM by Ezra.
|
|
07-04-2006 09:10 PM |
|
|
fidoboy
New Member
Posts: 7
52 / / –
Joined: Jul 2006
|
O.P. RE: Noob - Need help developing scripts
Yes my user is administrator..
|
|
07-04-2006 09:11 PM |
|
|
foaly
Senior Member
Posts: 718 Reputation: 20
38 / /
Joined: Jul 2006
|
RE: Noob - Need help developing scripts
well it's not the script... it didn't error when i tried it...
|
|
07-04-2006 09:17 PM |
|
|
craig2k5
Junior Member
Posts: 64
Joined: Feb 2006
|
RE: Noob - Need help developing scripts
does this with me sumtimes i just copy the code delete and start a new script, seems to work fine
|
|
07-04-2006 09:19 PM |
|
|
fidoboy
New Member
Posts: 7
52 / / –
Joined: Jul 2006
|
O.P. RE: RE: Noob - Need help developing scripts
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:.
|
|
07-04-2006 09:45 PM |
|
|
J-Thread
Full Member
Posts: 467 Reputation: 8
– / / –
Joined: Jul 2004
|
RE: Noob - Need help developing scripts
Probably a problem with encoding / line endings...
|
|
07-05-2006 10:19 AM |
|
|
RaceProUK
Elite Member
Posts: 6073 Reputation: 57
39 / /
Joined: Oct 2003
|
RE: Noob - Need help developing scripts
Where are the semi-colons?
|
|
07-05-2006 10:53 AM |
|
|
|