Raised This Month: $ Target: $400
 0% 

[TF2][Help]Array or enum: which to use in my case?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 06-22-2016 , 01:23   Re: [TF2][Help]Array or enum: which to use in my case?
Reply With Quote #7

I generally use an enum for array organization

enum {
CLIENT_BITFLAGS
CLIENT_LOADED
CLIENT_TIMESTAMP

CLIENT_ARRAY_SIZE
};

new g_clientarray[MAXPLAYERS+1][CLIENT_ARRAY_SIZE]

then do like

public OnClientPostAdminCheck (client)
{
g_clientarray[client][CLIENT_LOADED] = 1
}
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode