13.07.2009, 01:10
Dear scripters, you and me. What is your method, for storing hit contract information?
I haven't coded in a while, and I tried to create a hit contract system using enums and one array. Well, it works dandy, only problem, the enum works only for one player. Here's the code. Plus, I haven't figured out a way to nullify the player once the hit has been set.
Tell me how you structure the hit contract system! Thanks.
I haven't coded in a while, and I tried to create a hit contract system using enums and one array. Well, it works dandy, only problem, the enum works only for one player. Here's the code. Plus, I haven't figured out a way to nullify the player once the hit has been set.
Code:
enum HitContract { HITPLACER, HIT, CASH } static HitPlace[MAX_PLAYERS][HitContract];