[Ajuda] Aviso / warning
#1

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!
Reply
#2

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;

Reply
#3

Obrigado! Resolveu o 'Aviso' +REP, mas Nгo estб Retirando a senha!
Reply
#4

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
Reply
#5

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;

Reply
#6

Funcionou !!!, Obrigado Novamente Relaxed!!, Obrigado Tmb HoodScript!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)