13.08.2010, 11:26 
	
	
	
		Можно ли как-то по другому оптимизировать или написать данный код?
	
	
	
	
pawn Код:
new list_questions[MAX_PLAYERS][10];//список случайных неодинаковых 10 вопросов
new index;
while(index < 10)
{
list_questions[playerid][index] = random( 19 );
new Found;
for(new i=0; i<10; i++)
{
if( list_questions[playerid][index] == list_questions[playerid][i] && index != i)
{
Found = 1; break;
}
}
if(!Found) index++;
}

