| Blockland Forums > Modification Help |
| Chat Bot Help |
| << < (7/12) > >> |
| Xalos:
activatePackage is a regular Torque function and that includes all the rules of syntax which come with it. None of the rules of syntax say anything about white space after function names or lack thereof. lol(); works just as well as lol ( ) ; works just as well as lol ( ) ; The only difference is human readability. |
| Port:
--- Quote from: Placid on June 12, 2012, 01:43:06 AM ---activatepackage shouldn't have a space between the actual function called and the (). pretty sure that's your problem. --- End quote --- I can do this if I want to, it's completely valid. activatePackage ( getActivatePackage ( getRandom ( 0 , getNumActivePackages ( )- 1 ) ); |
| jes00:
--- Quote from: ¥ola on June 11, 2012, 08:24:39 PM ---... I'm not asking for tips as to how to make this 'better' I'm asking as to why it won't work --- End quote --- Still, it doesn't hurt. |
| adam savage:
--- Quote from: Placid on June 12, 2012, 01:43:06 AM ---activatepackage shouldn't have a space between the actual function called and the (). pretty sure that's your problem. --- End quote --- The engine does not mind whitespace. Infact, this is valid: $TestVar = 4 ; Its crazy, but it works. This is also valid: $TestVar=4;. No whitespace is needed AT ALL exempt in strings. |
| Xalos:
--- Quote from: adam savage on June 12, 2012, 07:53:42 AM ---The engine does not mind whitespace. Infact, this is valid: $TestVar = 4 ; Its crazy, but it works. This is also valid: $TestVar=4;. No whitespace is needed AT ALL exempt in strings. --- End quote --- Strings are freeform except for newline characters. You don't NEED spaces and in fact in some cases you don't want spaces in your strings. echo("Testvar1"); is just as valid as echo("Test Variable One");, one just takes less time to type a thousand thousand times for when you're debugging. EDIT: Obviously, I'm talking about the actual return character in the script itself - all the escape characters for it and NL are all fine. |
| Navigation |
| Message Index |
| Next page |
| Previous page |