[Ajuda] Aviso / warning - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Aviso / warning (
/showthread.php?tid=631022)
Aviso / warning -
GabrielMT - 21.03.2017
Olб '-', fiz um comando para Retira a senha do servidor In-game ( Sem Precisa Reiniciar ) e esta dando um warning / Aviso
Meu Code Estб recebendo o Seguinte aviso :
Quote:
C:\Users\GabrielMT\Desktop\GabrielMT\r2\gamemodes\ GM.pwn(31231) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
|
CODE :
Quote:
if(strcmp(cmd, "/DestrancarSV", true) == 0){
{
if(pAdmin[playerid] == 5)
SendClientMessageToAll(-1, " Servidor Destrancado!");
SetTimerEx("relingin", 5000 , false, "i", playerid);
SendRconCommand("password");
return 1;
}
return 1;
}
|
@ Aproveitando
Fiz esse comando Hj pela manhг e Ele nгo esta funcionando corretamente, ele era pra retirar a senha Do Servidor e nгo estб Retirando '-'
@OBS : Tenho um cmd para Setar um senha In-game!
Re: Aviso / warning -
Relaxed - 21.03.2017
PHP код:
if(strcmp(cmd, "/DestrancarSV", true) == 0)
{
if(pAdmin[playerid] == 5)
{
SendClientMessageToAll(-1, " Servidor Destrancado!");
SetTimerEx("relingin", 5000 , false, "i", playerid);
SendRconCommand("password");
}
return 1;
}
Re: Aviso / warning -
GabrielMT - 21.03.2017
Obrigado! Resolveu o 'Aviso' +REP, mas Nгo estб Retirando a senha!
Re: Aviso / warning -
HoodScript - 21.03.2017
Quote:
Originally Posted by GabrielMT
Obrigado! Resolveu o 'Aviso' +REP, mas Nгo estб Retirando a senha!
|
Dps do password mande outro rcon command como gmx para reiniciar o servidor
Re: Aviso / warning -
Relaxed - 21.03.2017
Tenta agora.
PHP код:
if(strcmp(cmd, "/DestrancarSV", true) == 0)
{
if(pAdmin[playerid] == 5)
{
SendClientMessageToAll(-1, " Servidor Destrancado!");
SetTimerEx("relingin", 5000 , false, "i", playerid);
SendRconCommand("password 0");
}
return 1;
}
Re: Aviso / warning -
GabrielMT - 21.03.2017
Funcionou !!!, Obrigado Novamente Relaxed!!, Obrigado Tmb HoodScript!!