[AJUDA] Chat de Admin
#1

Se alguem conseguir tirar essa warning do Chat de Admin, que deixa-o infuncional
+Rep
pawn Код:
if(text[0] == '!')
    {
        if(AdminLevel[playerid] == 0)
        {
            SendClientMessage(playerid, 0xFC4430AA,"Vocк nгo й um Administrador!");
            return 1;
        }
        new tmp[128];
        strmid(tmp, text, 1, strlen(text));
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0x0044E5FF, "Uso Correto: ! [texto]");
            return 1;
        }
        for(new a=0; a < MAX_PLAYERS; a++)
        {
            if(IsPlayerConnected(a))
            {
                if(AdminLevel[playerid] >= 1)
                {
                    new nome[MAX_PLAYER_NAME], str[128];
                    GetPlayerName(playerid, nome, sizeof(nome));
                    format(str, sizeof(str), "[ Admin Chat ] %s diz: %s", Nome(playerid), tmp);
                    SendClientMessage(a, 0xFF8000AA, str);
                }
            }
        }
    }
Код:
C:\Documents and Settings\Cliente\Desktop\TDM\gamemodes\Test.pwn(3428) : warning 225: unreachable code
Linha
pawn Код:
if(text[0] == '!')
Tinha um Return antes .-. que burro eu '.'
Se tiver como alguem apagar isso, GRATO!
Reply


Messages In This Thread
[AJUDA] Chat de Admin - by gabrieldefreitas11 - 23.01.2012, 02:49
Re: [AJUDA] Chat de Admin - by Jason` - 23.01.2012, 02:57
Re: [AJUDA] Chat de Admin - by Cristhian - 23.01.2012, 12:48
Re: [AJUDA] Chat de Admin - by WLSF - 23.01.2012, 13:03
Re: [AJUDA] Chat de Admin - by Cristhian - 23.01.2012, 13:13
Re: [AJUDA] Chat de Admin - by WLSF - 23.01.2012, 13:15
Re: [AJUDA] Chat de Admin - by Cristhian - 23.01.2012, 13:21
Re: [AJUDA] Chat de Admin - by WLSF - 23.01.2012, 13:23
Re: [AJUDA] Chat de Admin - by Cristhian - 23.01.2012, 13:30

Forum Jump:


Users browsing this thread: 1 Guest(s)