Iterators problem with mysql
#7

Quote:
Originally Posted by Oficer
Посмотреть сообщение
I want add all numbers of uid from query into test_iter
You only can add values to the interator to it's size ( new Iterator:Example<32>; )
For example:

Код:
hook OnScriptInit()
{
	new Iterator:Example<32>;
	for(new idx; idx < 32; idx++)
	{
		new index = random(128);
		Iter_Add(Example, index);
	}

	foreach(new id : Example)
		printf("%i", id);
}
Only theese numbers added for me
Код:
11
14
18
23
Sorry for my english
Reply


Messages In This Thread
Iterators problem with mysql - by Oficer - 01.02.2019, 09:06
Re: Iterators problem with mysql - by SymonClash - 01.02.2019, 09:22
Re: Iterators problem with mysql - by Oficer - 01.02.2019, 11:32
Re: Iterators problem with mysql - by Oficer - 01.02.2019, 16:36
Re: Iterators problem with mysql - by m4karow - 01.02.2019, 17:04
Re: Iterators problem with mysql - by Oficer - 01.02.2019, 19:02
Re: Iterators problem with mysql - by m4karow - 01.02.2019, 19:10
Re: Iterators problem with mysql - by Oficer - 02.02.2019, 16:31
Re: Iterators problem with mysql - by Calisthenics - 02.02.2019, 16:43
Re: Iterators problem with mysql - by Oficer - 02.02.2019, 16:53

Forum Jump:


Users browsing this thread: 3 Guest(s)