0 Members and 1 Guest are viewing this topic.
For functions that have a return statement in the template, do not include that as part of your code.
Quote from: mikembm on June 10, 2007, 10:41:18 pmFor functions that have a return statement in the template, do not include that as part of your code.This is asking too much; those lines are needed, and not everyone is going to use the script combiner. Either fix the script combiner, or add a note so people can manually fix scripts as needed. Remember, some scripts may modify the return value; leaving it out in that case will not result in the desired behaviour.Unless there is a good reason not to, I'm going to end up merging this with the other thread; tools of the community should not dictate formatting of others work without good reason, of which working around problems with a tool is not one of those reasons.
Quote from: chrisgbk on June 11, 2007, 02:43:04 amQuote from: mikembm on June 10, 2007, 10:41:18 pmFor functions that have a return statement in the template, do not include that as part of your code.This is asking too much; those lines are needed, and not everyone is going to use the script combiner. Either fix the script combiner, or add a note so people can manually fix scripts as needed. Remember, some scripts may modify the return value; leaving it out in that case will not result in the desired behaviour.Unless there is a good reason not to, I'm going to end up merging this with the other thread; tools of the community should not dictate formatting of others work without good reason, of which working around problems with a tool is not one of those reasons.No you misunderstood. When you download the server and get the default code all the functions have a return line in them like Result := State or whatever. And I have seen some people include those in their script. But if you do that it will just double up on that line. You can of cource include wahtever return statements you want. I'm just saying dont include the ones that are already there to begin with.