if(tanoevento[playerid] == 1) return SendClientMessage(playerid, red, "Nгo й possнvel usar nenhum comando enquanto estiver no evento.");
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(tanoevento[playerid] == 1) return SendClientMessage(playerid, -1, "Nгo й possнvel usar nenhum comando enquanto estiver no evento."),0;
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(arena[playerid] == 1) return SendClientMessage(playerid, -1, "Nгo й possнvel usar nenhum comando enquanto estiver no evento."), 0;
return true;
if(Flood[playerid] > GetTickCount())
return SendClientMessage(playerid, -1, "Aguarde 5 segundos usar comandos novamente!"), 0;
Flood[playerid] = GetTickCount() + 5000;
return true;
}
(1476) : warning 225: unreachable code Linha (1476): if(Flood[playerid] > GetTickCount())
Aproveitando a deixa:
PHP код:
Код:
(1476) : warning 225: unreachable code Linha (1476): if(Flood[playerid] > GetTickCount()) |
public OnPlayerCommandReceived(playerid, cmdtext[])
{
if(arena[playerid] == 1) return SendClientMessage(playerid, -1, "Nгo й possнvel usar nenhum comando enquanto estiver no evento."), 0;
if(Flood[playerid] > GetTickCount())
return SendClientMessage(playerid, -1, "Aguarde 5 segundos usar comandos novamente!"), 0;
Flood[playerid] = GetTickCount() + 5000;
return true;
}