Reply to Re: D-Modding tips 'n tricks
If you don't have an account, just leave the password field blank.
If statements:
is exactly the same as
Also, you don't always need the braces after an if statement. Without braces, the 'if' just applies to the next line, like so:
If &var is 0 it will go to 'there' and otherwise it will go to 'here'.
You can even do it on the same line!
Not really reccomended though, just indent that line or something.
The exception to this is variables, if you're changing a variable always enclose it in braces even if it's only one line because it has been known to cause problems.
if (&var)
is exactly the same as
if (&var != 0)
Also, you don't always need the braces after an if statement. Without braces, the 'if' just applies to the next line, like so:
if (&var) goto here; goto there;
If &var is 0 it will go to 'there' and otherwise it will go to 'here'.
You can even do it on the same line!
if (&var) goto here; goto there;
Not really reccomended though, just indent that line or something.
The exception to this is variables, if you're changing a variable always enclose it in braces even if it's only one line because it has been known to cause problems.