Quote:
|
Originally Posted by Lord of Destruction
how about Method #4: The solution for really experienced coders
Code:
enum CPlayer
{
pKills,
pDeaths,
pName[ 32 ]
};
new g_PlayerStuff[ 33 ][ CPlayer ];
// ...
console_print(0 , "%s has %d kills and %d deaths", g_PlayerStuff[ id ][ pName ], g_PlayerStuff[ id ][ pKills ], g_PlayerStuff[ id ][ pDeaths ] );
|
Which is EXACTLY the same as the other methods, except its harder to understand at a glance, and also contains a bit of unnessasary information (the name).
Honestly, for such a simple thing, using an enum is not useful or faster.
__________________