Posts: 2,856
Threads: 6
Joined: Jun 2007
Reputation:
0
You should not use foreach if you want to loop through all elements
foreach is there if you want to loop through parts of all available slots
As example if you want to loop only through the 20 connected players not through all 500 slots
But it seems that your code should loop through all elements
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
I rather have it explained than getting an url with someone who doesnt solve the problem..
Edit: Got it
Posts: 72
Threads: 2
Joined: Feb 2011
Reputation:
0
We rather have people search the forums before posting a new thread that has been posted before as well, but that's not gonna happen either.
Posts: 930
Threads: 7
Joined: Jul 2010
Reputation:
0
Owned. ^^
I don't really use foreach for things other than player looping.
The thread really explains it clearly, more than most other people can.
Posts: 920
Threads: 113
Joined: Nov 2009
Reputation:
0
Looked more carefully now. Thanks.