Сообщение от
Seregamil
Как то так что ли?
PHP код:
new i = PI[playerid][pSpecID];
while(++i < MAX_PLAYERS)
{
if(!IsPlayerConnected(i) || PlayerLogged[i] == 0 || i == playerid) continue;
if(i == MAX_PLAYERS - 1) i = 0;
StartSpectate(playerid,i);
}
Сделал вот так, все равно повтора нету..
PHP код:
new j = PI[playerid][pSpecID] -1;
while( ++j != MAX_PLAYERS )
{
if(!IsPlayerConnected(j) || PlayerLogged[j] == 0 || j == playerid || PI[j][pSpecID] != -1) continue;
StartSpectate(playerid,j);
if(j == MAX_PLAYERS - 1) // запуск повтора
j = -1;
}
Спасибо, можно закрыватт .