10.12.2014, 13:29
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(ViendoDuelo[i] == 1) // error ?? == i ??
{
new str2[256];
format(str2,sizeof(str2),"~r~%s ~w~es el ganador del duelo",PlayerName2(Duelos[i][DesafiadoId]));
GameTextForPlayer(i, str2, 5000, 3); // si usas forall no puedes definir a quien despuйs, usa asн.
ViendoDuelo[i] =-1;
}
}
}
pawn Код:
for (new j=0; j<= MAX_PLAYERS; j++)
{
if (ViendoDuelo[j] == i)
{
new str2[256];
format(str2,sizeof(str2),"~r~%s ~w~es el ganador del duelo",PlayerName2(Duelos[i][DesafiadoId]));
GameTextForPlayer(j, str2,5000,3); // <<<--- esto
ViendoDuelo[j] =-1;
}
}
}