Advertisement
JademusSreg

For Each Versus Pick Each

Apr 7th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.54 KB | None | 0 0
  1. void PlayerGroupDoSomething (playergroup g)
  2. {
  3.     //playergroup g = PlayerGroupActive();
  4.     int count;
  5.     int player;
  6.    
  7.     for (count = PlayerGroupCount(g); count > 0; count-=1)
  8.     {
  9.         player = PlayerGroupPlayer(g,count);
  10.         // Do something
  11.     }
  12. }
  13.  
  14. void PlayerGroupDoSomething (playergroup g)
  15. {
  16.     //playergroup g = PlayerGroupActive();
  17.     PlayerGroupLoopBegin(g);
  18.     while (!PlayerGroupLoopDone()) {
  19.         PlayerGroupLoopStep();
  20.     // Do something with PlayerGroupLoopCurrent ();
  21.     }
  22.     PlayerGroupLoopEnd();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement