Some people might take scripts from the forums and then find out its not working.
There are basic errors which can be faced which is not the fault of the scripter in the forum
Some errors are:
Redundant Event
This happens when you get two scripts together and there are duplicate events for example you found a Show script and a hide script (which are separately posted) it sounds dumb but it makes a good example anyways this is the hide script
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
EndEvent
Now here is the reveal script
Code:Event -ChatMessage
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
If you are not familiar with scripting and you want to put them together this is what it iwill probably look like
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
EndEvent
Event -ChatMessage
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
This is where you encounter a Redundant event because there are 2 Event -ChatMessages
you can counter this by making the second one Event +ChatMessage but i highly recommend you to put them togehter this is how
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
It is kinda like a 'Box' you cant have two of the same box together
Syntax error
There are many forms of syntax error but one can form can be encountered when the PA is not set it says in the topic/thread of the script which PA to set
For example --> http://pmnb.net/forum/index.php?topic=72.0
if you noticed it said
PA's needed --> #Question
you can apply this PA by typing in
Code:/SetPA #Question
in the server master window.
If you still meet with a error then ask for help
Report errors in this way
Suppose this is the script
Code:Event -ChatMessage
If Message = "!Test"
/Sendpm #sOURCE, "Test"
EndIF
EndEvent
ok now there is a Syntax error in line 2
so report it this way
Code:Syntax error in line 2
If Message = "!Test"
Please mention the line number from the original script posted.
Yea i guess thats about it
(SF's explanation) If you have an IQ above 50....
Read this if you didnt understand what Imran explaned.
-Think of Events as boxes. Now there's a rule that there cant be two boxes of the same name(with the limited names).
-All the codes, If's & EndIf's are what you put in a box. Just leave a line's gap and copy the codes(script) into it's specified box(events). Just a little imagination and a functional brain is all you need.
-Now you can always ask where the codes go when you would like to take a script from the forums i'll be happy to answer.
Now read Imran's explanation and your surely to get it.
hopefully will help.
*****Requesting Sticky Please*****
~By Imran; posted by CresentMoon. ; real link http://pmnb.net/forum/index.php?topic=411.0
There are basic errors which can be faced which is not the fault of the scripter in the forum
Some errors are:
Redundant Event
This happens when you get two scripts together and there are duplicate events for example you found a Show script and a hide script (which are separately posted) it sounds dumb but it makes a good example anyways this is the hide script
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
EndEvent
Now here is the reveal script
Code:Event -ChatMessage
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
If you are not familiar with scripting and you want to put them together this is what it iwill probably look like
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
EndEvent
Event -ChatMessage
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
This is where you encounter a Redundant event because there are 2 Event -ChatMessages
you can counter this by making the second one Event +ChatMessage but i highly recommend you to put them togehter this is how
Code:Event -ChatMessage
If $Message = "!Hide"
/SetPlayerInfo #Source, HIDE, 0
/SendPM #Source, "*** your team is now hidden"
EndIf
If $Message = "!Show"
/SetPlayerInfo #Source, HIDE, 1
/SendPM #Source, "*** your team is now revealed"
EndIf
EndEvent
It is kinda like a 'Box' you cant have two of the same box together
Syntax error
There are many forms of syntax error but one can form can be encountered when the PA is not set it says in the topic/thread of the script which PA to set
For example --> http://pmnb.net/forum/index.php?topic=72.0
if you noticed it said
PA's needed --> #Question
you can apply this PA by typing in
Code:/SetPA #Question
in the server master window.
If you still meet with a error then ask for help
Report errors in this way
Suppose this is the script
Code:Event -ChatMessage
If Message = "!Test"
/Sendpm #sOURCE, "Test"
EndIF
EndEvent
ok now there is a Syntax error in line 2
so report it this way
Code:Syntax error in line 2
If Message = "!Test"
Please mention the line number from the original script posted.
Yea i guess thats about it
(SF's explanation) If you have an IQ above 50....
Read this if you didnt understand what Imran explaned.
-Think of Events as boxes. Now there's a rule that there cant be two boxes of the same name(with the limited names).
-All the codes, If's & EndIf's are what you put in a box. Just leave a line's gap and copy the codes(script) into it's specified box(events). Just a little imagination and a functional brain is all you need.
-Now you can always ask where the codes go when you would like to take a script from the forums i'll be happy to answer.
Now read Imran's explanation and your surely to get it.
hopefully will help.
*****Requesting Sticky Please*****
~By Imran; posted by CresentMoon. ; real link http://pmnb.net/forum/index.php?topic=411.0
Last edited by Tokeno 666 on Thu Jan 08, 2009 8:36 pm; edited 2 times in total (Reason for editing : I needed to give credti to who wrote this)