| 08-07-2008, 07:51 AM | #1 |
I'm currently working on one of those big endgame multiboards, that give lots of detailed & interesting information about the overall game played. I'd like to display the item (Guns) that was most used per player. You can only wield one Gun at a time, but can freely exchange it at anytime at a shop. So basically with a timer I need to count how long each player holds each gun. Then at the end tally the figures & get the highest value. The simplest method I can think of in doing this is like this:
So basically what I'm asking is, is there a simpler and/or more efficient method of accomplishing this without needing so many arrays? thx for any advice/help |
| 08-07-2008, 10:19 AM | #2 |
Structs. |
| 08-07-2008, 10:33 AM | #3 |
Could you give a few more details plz? |
| 08-07-2008, 11:19 AM | #4 |
Structs are actually arrays as well but they look better, they are implemented by vJass. If you need less arrays, you can have one array with 0..99 for player 0, 100..199 for player 1 and so on. It would actually fit better because this way you don't need a zillion IF's and can do it in a few lines if your weapons are numbered. |
