22.05.2012, 14:18
Quote:
I don't see why you would use a case (switch) statement for making pickups, textdraws, enters, and exits. Switch statements are better to use to check the value of an integer multiple times.
The reason people create pickups through MySQL is so that they don't have to restart the server to add new pickups. It's not more strenuous on the server except while loading and saving, which isn't done very often. If you have a local MySQL database, then it won't really affect much. |
For /enter's and /exits (On the command code itself)
Would it be better to do an if statement for each seperate one or a case statement to save code and plausibility, the only issue is how to make it into a case statement.