[Ajuda] Algum problema nesse cуdigo?
#3

pawn Код:
if(strcmp(cmd, "/helpers", true) == 0)
{
    SendClientMessage(playerid, COR_ADMIN , "Helpers Online:");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pHelper] == 0) continue;
        GetPlayerName(i, sendername, MAX_PLAYER_NAME);
        switch(PlayerInfo[i][pHelper])
        {
            case 1..49:
            {
                format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
            case 50..79:
            {
                format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
            case 80..99:
            {
                format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
            case 100..149:
            {
                format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC6633}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
            default:
            {
                format(string, 128, "{3366FF}Helper{FFFFFF}: %s {3366FF}- Nivel{FFFFFF}: [{CC33CC}%s{FFFFFF}]{3366FF} - Modo{FFFFFF}: %s", sendername, HelperLevel, helpertrampando[i] == 1 ? ("[{33CC33}Trabalhando{FFFFFF}]") : ("[{FF00FF}Jogando{FFFFFF}]"));
                SendClientMessage(playerid, COLOR_WHITE, string);
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Algum problema nesse cуdigo? - by gugugrp - 12.02.2014, 21:13
Re: Algum problema nesse cуdigo? - by Dieguinho - 12.02.2014, 21:42
Re: Algum problema nesse cуdigo? - by PT - 12.02.2014, 22:01

Forum Jump:


Users browsing this thread: 2 Guest(s)