23.01.2012, 02:49
Se alguem conseguir tirar essa warning do Chat de Admin, que deixa-o infuncional
+Rep
Linha
Tinha um Return antes .-. que burro eu '.'
Se tiver como alguem apagar isso, GRATO!
+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
pawn Код:
if(text[0] == '!')
Se tiver como alguem apagar isso, GRATO!