Raised This Month: $32 Target: $400
 8% 

Randomize Teams


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-12-2021 , 16:50   Re: Randomize Teams
Reply With Quote #11

you don't need to test such simple stuff try to read the code and understand what each part does, rereading your code twice or more make you process stuff much easier.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 02-12-2021 , 17:02   Re: Randomize Teams
Reply With Quote #12

Quote:
Originally Posted by Natsheh View Post
you don't need to test such simple stuff try to read the code and understand what each part does, rereading your code twice or more make you process stuff much easier.
Trust me i read it more than twice, the only thing that confuses me is this

PHP Code:
iPlayers[j] = iPlayers[--iNum
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-12-2021 , 17:42   Re: Randomize Teams
Reply With Quote #13

This is a method to exclude the player we just transferred from the players array.

so we don't have to transfer him again by mistake.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-12-2021 at 17:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply


Thread Tools
Display Modes

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 16:50.


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