Raised This Month: $ Target: $400
 0% 

Preventing the names from repeating


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-21-2016 , 18:49   Re: Preventing the names from repeating
Reply With Quote #2

Switch the two for-loops. Put the groups loop inside the player loop, then check if the player has the flags, and if he does, simply add "break" in the groups loop, so the other groups below it don't get checked. Also, don't get the player's name before making sure that he has the flags.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



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 18:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode