How to check from arrays?
#4

Using another array with the same size and set accordingly (to true when the spot is taken or to false when not). To me though, the best way would be an iterator from foreach/y_iterate. When a derby match is starting, add all the free slots to the iterator and when a player joins, pick up a random slot and remove it from the iterator afterwards.
Reply


Messages In This Thread
How to check from arrays? - by K0P - 24.06.2016, 15:45
Re: How to check from arrays? - by Sjn - 24.06.2016, 15:57
Re: How to check from arrays? - by K0P - 24.06.2016, 15:58
Re: How to check from arrays? - by Konstantinos - 24.06.2016, 16:08
Re: How to check from arrays? - by K0P - 24.06.2016, 16:12
Re: How to check from arrays? - by Konstantinos - 24.06.2016, 16:18
Re: How to check from arrays? - by Stinged - 24.06.2016, 16:23

Forum Jump:


Users browsing this thread: 1 Guest(s)