Como puedo hacer una segunda linea de esto?
#1

pawn Код:
if( (Count[0] == 0 && Count[1] == 0) || (Count[0] == 0 && Count[1] >= 1 && PlayerInfo[playerid][Level] == 0) ) return SendClientMessage(playerid, blue, "No Administrators jugando ni conectados");

    if(Count[0] == 1) {
        for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Level] > 0) {
           format(string, sizeof(string), "...:::Administradores:::...> (%d)%s [%d] ", i, PlayerName2(i), PlayerInfo[i][Level] ); SendClientMessage(playerid, blue, string);
        }
    }

    if(Count[0] > 1) {
        new x; format(string, sizeof(string), "...:::Administradores:::... ");
        for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && PlayerInfo[i][Level] > 0)
        {
            format(string,sizeof(string),"%s(%d)%s [%d]",string,i,PlayerName2(i),PlayerInfo[i][Level]);
            x++;
            if(x >= 5) {
                SendClientMessage(playerid, blue, string); format(string, sizeof(string), "...:::Administradores:::... "); x = 0;
            }
            else format(string, sizeof(string), "%s,  ", string);
        }
        if(x <= 4 && x > 0) {
            string[strlen(string)-3] = '.';
            SendClientMessage(playerid, blue, string);
        }
    }


    if( (Count[1] == 1) && (PlayerInfo[playerid][Level] > 0) ) {
        for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) {
            format(string, sizeof(string), "Administradores RCON: (%d)%s", i, PlayerName2(i)); SendClientMessage(playerid, COLOR_WHITE, string);
        }
    }
    if(Count[1] > 1) {
        new x; format(string, sizeof(string), "Administradores RCON: ");
        for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i))
        {
            format(string,sizeof(string),"%s(%d)%s",string,i,PlayerName2(i));
            x++;
            if(x >= 5) {
                SendClientMessage(playerid, COLOR_WHITE, string); format(string, sizeof(string), "Administradores RCON: "); x = 0;
            }
            else format(string, sizeof(string), "%s,  ", string);
        }
        if(x <= 4 && x > 0) {
            string[strlen(string)-3] = '.';
            SendClientMessage(playerid, COLOR_WHITE, string);
        }
    }
    return 1;
}
Cuando hay muchos admins conectados la linea sigue y sigue y no va otra linea (en el juego) , entonces lo que quiero hacer es ponerlos en dialogo o podre agregar mas de 2 lineas

PD: Es del ladmin4v2
Reply


Messages In This Thread
Como puedo hacer una segunda linea de esto? - by TakeR. - 23.10.2011, 23:43
Respuesta: Como puedo hacer una segunda linea de esto? - by Jovanny - 23.10.2011, 23:55
Re: Respuesta: Como puedo hacer una segunda linea de esto? - by TakeR. - 24.10.2011, 02:42
Respuesta: Como puedo hacer una segunda linea de esto? - by Jovanny - 24.10.2011, 02:50
Re: Como puedo hacer una segunda linea de esto? - by TakeR. - 24.10.2011, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)