SA-MP Forums Archive
[Ajuda] Problema no /admins - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Problema no /admins (/showthread.php?tid=423124)



Problema no /admins - FlaaSShh - 16.03.2013

Bem, mudei meu /admins (o antigo era do BMG) & quando dou /admins com o novo dб nisso ai ..

# 1 Screenshot - Com o novo /admins





Codigo Do /admins (novo)

pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
    {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
            {
                if(admtrampando[i] >= 1)
                {
                    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i),PlayerInfo[i][pAdmin]);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1337)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1338)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1339)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 2800)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 2999)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 3000)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [{FF1493}Trabalhando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }

                }
                else
                {
                    if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i),PlayerInfo[i][pAdmin]);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1337)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1338)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 1339)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 2800)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 2999)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                    if(PlayerInfo[i][pAdmin] >= 3000)
                    {
                    format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [{FF1493}Jogando{FFFFFF}]",PlayerName(i));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                    }
                }
            }
        }
        return 1;
    }
Codigo Do /admins (antigo)

pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
    {
        SendClientMessage(playerid, COLOR_WHITE, "|______________ Admins Online ______________|");
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
            {
                if(admhide[i] == 0)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    new lolz[20];
                    if(PlayerInfo[i][pAdmin] == 1)
                    {
                        lolz = "Moderador";
                    }
                    if(PlayerInfo[i][pAdmin] == 2)
                    {
                        lolz = "2";
                    }
                    if(PlayerInfo[i][pAdmin] == 3)
                    {
                        lolz = "3";
                    }
                    if(PlayerInfo[i][pAdmin] == 4)
                    {
                        lolz = "4";
                    }
                    if(PlayerInfo[i][pAdmin] == 1337)
                    {
                        lolz = "Master";
                    }
                    if(PlayerInfo[i][pAdmin] == 1338)
                    {
                        lolz = "Web Master/Mapper";
                    }
                    if(PlayerInfo[i][pAdmin] == 1339)
                    {
                        lolz = "Gerente";
                    }
                    if(PlayerInfo[i][pAdmin] == 1340)
                    {
                        lolz = "Sub-Dono";
                    }
                    if(PlayerInfo[i][pAdmin] == 1341)
                    {
                        lolz = "Dono";
                    }
                    if(PlayerInfo[i][pAdmin] == 1342)
                    {
                        lolz = "Dono/Scripter";
                    }
                    if(away[i] == 0)
                    {
                        if(admtrampando[i] == 1)
                        {
                            format(string, 128, "%s | Nivel: [%s] (Trabalhando)", sendername, lolz);
                            SendClientMessage(playerid, COR_ADMIN, string);
                        }
                        else
                        {
                            format(string, 128, "%s | Nivel: [%s] (Jogando)", sendername, lolz);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                        }

                    }
                    else
                    {
                        format(string, 128, "%s | Nivel: [%s] [AFK]", sendername, lolz);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                    }
                }
            }
        }
        return 1;
    }
Й isso ai, espero que me ajudem :S



Re: Problema no /admins - HumildadeAgain - 16.03.2013

Que script horrivel..
pawn Код:
if (strcmp(cmd, "/admins", true) == 0) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1337) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1338) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i)),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1339) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2800) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2999) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 3000) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
Deve ser isso.


Re: Problema no /admins - FlaaSShh - 16.03.2013

Quote:
Originally Posted by HumildadeAgain
Посмотреть сообщение
Que script horrivel..
pawn Код:
if (strcmp(cmd, "/admins", true) == 0) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1337) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1338) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i)),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1339) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2800) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2999) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 3000) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
Deve ser isso.
2 Errors:

pawn Код:
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\BUL.pwn(30633) : error 001: expected token: ";", but found ")"
C:\Users\FlaaSShh\Desktop\Brasil Ultimate Life\gamemodes\BUL.pwn(30633) : error 029: invalid expression, assumed zero



Re: Problema no /admins - HumildadeAgain - 16.03.2013

Linha?

@edit

Achei o erro
pawn Код:
if (strcmp(cmdtext, "/admins", true) == 0) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1337) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1338) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1339) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2800) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2999) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 3000) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
Corrigido


Re: Problema no /admins - FlaaSShh - 16.03.2013

Quote:
Originally Posted by HumildadeAgain
Посмотреть сообщение
Linha?
pawn Код:
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i)),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));



Re: Problema no /admins - HumildadeAgain - 16.03.2013

Quote:
Originally Posted by FlaaSShh
Посмотреть сообщение
pawn Код:
format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i)),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
Leia meu edit la..

pawn Код:
if (strcmp(cmdtext, "/admins", true) == 0) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1337) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1338) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1339) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2800) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2999) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 3000) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }



Re: Problema no /admins - FlaaSShh - 16.03.2013

Quote:
Originally Posted by HumildadeAgain
Посмотреть сообщение
Linha?

@edit

Achei o erro
pawn Код:
if (strcmp(cmdtext, "/admins", true) == 0) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1337) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1338) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 1339) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2800) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 2999) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
            if(PlayerInfo[i][pAdmin] == 3000) {
                format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
Corrigido
Agora no /admins dб SERVER:Unknown command. - Como Resolver?


Re: Problema no /admins - Don_Speed - 16.03.2013

Teste este code .
pawn Код:
if (strcmp(cmdtext, "/admins", true) == 0)
   {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++)
        {
            switch(PlayerInfo[i][pAdmin])
            {
                case 1 .. 1336: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 1337: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 1338: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 1339: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 2800: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 2999: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                case 3000: format(string, 256, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
            }
        }
        SendClientMessage(playerid, COLOR_GRAD1, string);
        return 1;
    }
Att DonSpeed


Re: Problema no /admins - HumildadeAgain - 16.03.2013

pawn Код:
if (!strcmp(cmdtext, "/admins", true)) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
            {
                if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1337) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1338) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1339) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 2800) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 2999) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 3000) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
        }
        return 1;
    }



Re: Problema no /admins - FlaaSShh - 16.03.2013

Quote:
Originally Posted by HumildadeAgain
Посмотреть сообщение
pawn Код:
if (!strcmp(cmdtext, "/admins", true)) {
        SendClientMessage(playerid, COLOR_ROSA, "• Administraзгo {00FFFF}Ultimate {00FF00}Life{FFFFFF} Online •");
        for(new i = 0; i <= MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i) == 1 && PlayerInfo[i][pAdmin] > 0)
            {
                if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] <= 1336) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}%d{FFFFFF}] - Modo: [%s]",PlayerName(i),PlayerInfo[i][pAdmin],admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1337) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Lнderes{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1338) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente De Ediзгo{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 1339) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}Gerente Imobiliбrio{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 2800) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}SUB-DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 2999) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}DONO{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
                if(PlayerInfo[i][pAdmin] == 3000) {
                    format(string, sizeof string, "{FFFFFF}Admin: {00FF7F}%s{FFFFFF} - Nivel: [{FFA500}FUNDADOR{FFFFFF}] - Modo: [%s]",PlayerName(i),admtrampando[i] ? ("{FF1493}Trabalhando{FFFFFF}") : ("{FF1493}Jogando{FFFFFF}"));
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
        }
        return 1;
    }
Funcionou ^^ Thx