13.08.2010, 11:42
Можно так сделать:
pawn Код:
new index;
while(index < 10)
{
list_questions[playerid][index] = random( 19 );
new Found;
for(new i=0; i<index; i++)
{
if( list_questions[playerid][index] == list_questions[playerid][i])
{
Found = 1; break;
}
}
if(!Found) index++;
}