25.08.2012, 14:34
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
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