Results 1 to 2 of 2
Thread: im at a standstill
- 06-25-2007, 04:46 AM #1
Member
- Join Date
- Jun 2007
- Posts
- 5
- Rep Power
- 0
im at a standstill
so im a bit stumped on how to go about this. I have 9 people total and at max 6 of them are in a single game. this script it made to take each individual player and update their stats. how would i go about making it so it would go through the players selected only and repeat for each player that was selected at the start of the program.
- 06-25-2007, 07:25 AM #2
As far as i understand, you can create a class for holding statistics of individual users. Each class can have an id or name associated with it so that you can know whose statistics it is. You can create 9 objects from this class at the beginning. You can keep these 9 objects inside a vector. And whenever you need to update 6 of these you can iterate over the vector and update only the ones who needs an update based on the names/ids of those people.
Bookmarks