15-02-2007, 11:37 PM
These are all not bad ideas, but you have to think on a wider scope. For 1, yes, you save 3 bytes if you convert it to a byte for every player on. Overall, that will save you, what? 150 bytes on a decently populated server (50 people on)? Its not bad to do this - in fact, its very good practice, but unless it is very critical (such as a loop called 100 times a second, or an array with over 1000 elements), you can spend months doing all little kinds of optimizations and end up with no noticeable difference.
8. Not really - each has their own use. Select case works only if comparing one variable.
8. Not really - each has their own use. Select case works only if comparing one variable.