07.09.2016, 13:27
Quote:
Not to sound like a cunt here, but this could do with some improvement.
Firstly, I think GetPlayerSex would be a better alternative. It's unnecessary to have two functions for something which is better off having just one function. Maybe have it return one for male and two for female for instance. Secondly, your switch statements don't need to be expanded over multiple lines. They can all be merged together to form one line. If you're getting a "input line too long" error then you can split them without creating another statement in the switch. These are just some general methods of improving your code, but I do like the idea of this include though. |