Moonrise Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Moonrise Forums

MoonRise Forums Homepage

Latest topics
» Many teams made by Revolution.
READ BEFORE COMPLANING ABOUT ERRORS. EmptySun Apr 19, 2009 4:29 pm by Revolution

» Abandoning MoonRise
READ BEFORE COMPLANING ABOUT ERRORS. EmptySun Apr 19, 2009 4:16 pm by Revolution

» Items needed on Pokemon Netbatte
READ BEFORE COMPLANING ABOUT ERRORS. EmptySun Apr 19, 2009 2:56 pm by Warden

» Random Scripts
READ BEFORE COMPLANING ABOUT ERRORS. EmptySun Mar 29, 2009 12:24 pm by Warden

» Want to destroy your computer? Go here!
READ BEFORE COMPLANING ABOUT ERRORS. EmptyThu Mar 26, 2009 4:13 pm by Revolution

» People
READ BEFORE COMPLANING ABOUT ERRORS. EmptyTue Mar 24, 2009 10:34 pm by Warden

» This is most likely in the WRONG forum, but...
READ BEFORE COMPLANING ABOUT ERRORS. EmptyTue Mar 24, 2009 10:30 pm by Warden

» Abandoning MoonRise
READ BEFORE COMPLANING ABOUT ERRORS. EmptyTue Mar 24, 2009 10:22 pm by Revolution

» Team
READ BEFORE COMPLANING ABOUT ERRORS. EmptyTue Feb 17, 2009 6:44 am by The Almighty Flareon

Log in

I forgot my password



Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Search
 
 

Display results as :
 


Rechercher Advanced Search

Affiliates
free forum
 


Bookmark
Get this site as a widget

You are not connected. Please login or register

READ BEFORE COMPLANING ABOUT ERRORS.

2 posters

Go down  Message [Page 1 of 1]

1READ BEFORE COMPLANING ABOUT ERRORS. Empty READ BEFORE COMPLANING ABOUT ERRORS. Wed Jan 07, 2009 8:29 pm

Revolution


Global Administrator
Global Administrator

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



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)

https://moonriseforums.darkbb.com/

2READ BEFORE COMPLANING ABOUT ERRORS. Empty Re: READ BEFORE COMPLANING ABOUT ERRORS. Thu Jan 08, 2009 9:32 pm

Warden


Global Administrator
Global Administrator

Nice guide, perfect for beginners

3READ BEFORE COMPLANING ABOUT ERRORS. Empty Re: READ BEFORE COMPLANING ABOUT ERRORS. Sun Jan 11, 2009 7:54 am

Guest


Guest

D:

Sponsored content



Back to top  Message [Page 1 of 1]

Similar topics

-

» READ FIRST

Permissions in this forum:
You cannot reply to topics in this forum