23/07/2021 22:12
(23/07/2021 19:52)zBL4CK Escreveu:ou melhor assimCódigo PHP:CMD:mascarados(playerid, params[])
{
if (!CheckAdmin(playerid, ADMIN_LEVEL_1)) return SendClientMessageEx(playerid, COLOR_LIGHTRED, "ERRO:{FFFFFF} Você não pode usar este comando.");
new mask_string[1024];
mask_string[0] = EOS;
foreach(new i : Player)
{
if (!IsPlayerLogged(i) || !maskOn{i}) {
continue;
format(mask_string, sizeof(mask_string), "{FFFFFF}%s%s - %s [ID: %i]\n", mask_string, GetNameWithMask(i), GetNameEx(i), i);
}
else return Dialog_Show(playerid, None, DIALOG_STYLE_MSGBOX, "{FFFFFF}Jogadores mascarados", "[ERRO]: Não há alguém usando mascaras no servidor.", ">>>", "");
}
Dialog_Show(playerid, None, DIALOG_STYLE_MSGBOX, "{FFFFFF}Jogadores mascarados", mask_string, ">>>", "");
return 1;
}
deu isso: admin1_cmd.inc(287) : warning 225: unreachable code
e foi nessa linha: else return Dialog_Show(playerid, None, DIALOG_STYLE_MSGBOX, "{FFFFFF}Jogadores mascarados", "[ERRO]: Não há alguém usando mascaras no servidor.", ">>>", "");