[Include] Simple get player sex
#9

Quote:
Originally Posted by Chump
Посмотреть сообщение
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.
Why would you even say yourself a cunt, when your suggestion is pretty useful.
Reply


Messages In This Thread
Simple get player sex - by DarkLight - 03.09.2016, 17:52
Re: Simple get player sex - by Stinged - 03.09.2016, 20:31
Re: Simple get player sex - by ExTaZZ69 - 03.09.2016, 20:55
Re: Simple get player sex - by DarkLight - 03.09.2016, 20:55
Re: Simple get player sex - by Kathleen - 03.09.2016, 21:09
Re: Simple get player sex - by DarkLight - 03.09.2016, 21:11
Re: Simple get player sex - by Counterafk - 06.09.2016, 14:14
Re: Simple get player sex - by Chump - 07.09.2016, 12:43
Re: Simple get player sex - by Logic_ - 07.09.2016, 13:27
Re: Simple get player sex - by Quinncell - 08.09.2016, 15:16

Forum Jump:


Users browsing this thread: 1 Guest(s)