Results 1 to 2 of 2
  1. #1
    Fish is offline Member
    Join Date
    Jun 2007
    Rep Power

    Default 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.

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power


    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts