No se ejecuta el loop
#1

Bueno, estoy haciendo un comando en el cual aparescan los admins OnLine, pero al ejecutar el comando las variables "c" y "d" no se suman! y yo ya me loggie rcon ! la verdad no entiendo que pasa !, espero que me puedan ayudar, de ante mano muchas gracias!

pawn Код:
new str[256], c, d;
    format(str, 256, "Admins online:\n");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i))
        {
            c++;
            new str2[30];
            format(str2, 30, "{FFFFFF}RCON:\t{FF0000}%s\n", PlayerName2(i));
            strcat(str, str2);
        } else if (PlayerInfo[i][Level] != 0) {
            d++;
            new str2[30];
            format(str2, 30, "{FFFFFF}Admin:\t{FF0000}%s[LEVEL: $d]\n", PlayerName2(i), PlayerInfo[i][Level]);
        }
    }
    if(c == 0 || d == 0) SendClientMessage(playerid, -1, "En estos momentos no se puede dar a conocer la lista de administradores.");
    else ShowPlayerDialog(playerid, D_LOGIN+3, DIALOG_STYLE_MSGBOX, "Admins OnLine:", str, "Ok", "");
ah y muchas gracias a adri1 por el codigo !
Reply


Messages In This Thread
No se ejecuta el loop - by ForTrezZ - 09.12.2013, 23:42
Respuesta: No se ejecuta el loop - by Zume - 10.12.2013, 00:18
Respuesta: No se ejecuta el loop - by ForTrezZ - 10.12.2013, 00:20

Forum Jump:


Users browsing this thread: 1 Guest(s)