<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pool%3A%3AforEachInStreamRange</id>
	<title>Pool::forEachInStreamRange - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://rage.grandroleplay.ru/index.php?action=history&amp;feed=atom&amp;title=Pool%3A%3AforEachInStreamRange"/>
	<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::forEachInStreamRange&amp;action=history"/>
	<updated>2026-07-24T19:12:23Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://rage.grandroleplay.ru/index.php?title=Pool::forEachInStreamRange&amp;diff=12600&amp;oldid=prev</id>
		<title>imported&gt;Rootcause: Replaced HTML with template</title>
		<link rel="alternate" type="text/html" href="https://rage.grandroleplay.ru/index.php?title=Pool::forEachInStreamRange&amp;diff=12600&amp;oldid=prev"/>
		<updated>2018-10-26T13:40:53Z</updated>

		<summary type="html">&lt;p&gt;Replaced HTML with template&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This function is used for calling a function for each element that is in a client&amp;#039;s streaming range in a pool.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pool.forEachInStreamRange(Function callingFunction);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;callingFunction:&amp;#039;&amp;#039;&amp;#039; Function, what will be called.&lt;br /&gt;
&lt;br /&gt;
==Example #1== &lt;br /&gt;
This example will generate text with all player nicknames within the client&amp;#039;s streaming range.&lt;br /&gt;
&lt;br /&gt;
{{ClientsideCode|&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
let getNicknamesText = () =&amp;gt; {&lt;br /&gt;
	let text = ``;&lt;br /&gt;
	mp.players.forEachInStreamRange(&lt;br /&gt;
		(player, id) =&amp;gt; {&lt;br /&gt;
			text = text == `` ? player.name : `${text} , ${player.name}`;&lt;br /&gt;
		}&lt;br /&gt;
	);&lt;br /&gt;
	return text;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
let blahBlah = getNicknamesText();&lt;br /&gt;
console.log(blahBlah != `` ? blahBlah : `There are no players in your streaming range.`);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{EntityPool_Client_functions}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Rootcause</name></author>
	</entry>
</feed>