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
Author Message
cidra
Junior Member
Join Date: Jun 2016
Location: Italy
Old 06-19-2016 , 06:39   [TF2][Help]Array or enum: which to use in my case?
Reply With Quote #1

Hi. I want to create a sort of sheet that keeps the players' info for my plugin.
My idea was to make 18 arrays for the 18 in-game users (Highlander mode)
Each array has 4 integers:
1. userid
2. team (1 = red; 2= blu)
3. class (1 = scout; 2=soldier; etc...)
4. BOT (1 = no; 2 = yes)

These variables will be refreshed everytime someone joins a class, leaves the match or does some specified command.
This would let the plugin recognize the Bots with a specified class or team and would make a sort of filter for some commands of my choice.
Do you think an array is a good thing for this case? Or should i use something else?
Thank you, and sorry if this question is a blasphemy to SourcePawn language: i just got into it

Last edited by cidra; 06-19-2016 at 15:06. Reason: New question. Don't want to open another topic when this is still on the 1st page.
cidra is offline
 


Thread Tools
Display Modes

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