[Duda] Ordenar coordenadas de menor a mayor.
#4

Algo bбsico:

pawn Код:
new Posiciones[3][MAX_PLAYERS];
forward DetectarPosiciones();
public DetectarPosiciones()
{
    new string[128], n[MAX_PLAYER_NAME];
    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if(Posiciones[i][0] == 1)
        {
            format(string, sizeof(string), "Primero %s .", GetPlayerName(i, n, MAX_PLAYER_NAME));
            SendClientMessageToAll(-1, string);
        }
        if(Posiciones[i][1] == 1)
        {
            format(string, sizeof(string), "Segundo %s .", GetPlayerName(i, n, MAX_PLAYER_NAME));
            SendClientMessageToAll(-1, string);
        }
        if(Posiciones[i][2] == 1)
        {
            format(string, sizeof(string), "Tercero %s .", GetPlayerName(i, n, MAX_PLAYER_NAME));
            SendClientMessageToAll(-1, string);
        }
    }
    return 1;
}
Tendrнas que desarrollarlo.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)