View Single Post
Author Message
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 03-12-2015 , 11:50   Question about memory
Reply With Quote #1

What's the best? (and why)
Code:
enum _:Types
{
    Connected,
    Alive,
    Retarded
}

new bool:g_Bools[MAX_PLAYERS + 1][Types]

public client_putinserver(id)
    g_Bools[id][Connected] = true
or:
Code:
new bool:g_bConnected[MAXPLAYERS + 1], bool:g_bAlive[MAXPLAYERS + 1], bool:g_bRetarded[MAXPLAYERS + 1]

public client_putinserver(id)
    g_bConnected[id] = true
__________________
Jhob94 is offline