[Ajuda] SERVER: Unknowm Command
#3

LeonardoMD, organizei o comando e o erro estava no return 1; no final do comando, estava na chave incorreta.


Код:
       if(!strcmp( cmd, "/criarderby", true)) {
	
       if (pAdmin[playerid] == 5 || pAdmin[playerid] == 4) {
       
	       if (EventoCriado == 1) {
               return SendClientMessage( playerid, Vermelho, "| ERRO | Jб tem um evento em andamento!" );
           } else {
               vEvento[ CreateVehicle( 556, 1127.2469,1359.3855,10.8203,183.2775, 0, 1, -1 ) ] = 1;
               vEvento[ CreateVehicle( 556, 1123.3887,1359.4010,10.8203,184.5308, 0, 1, -1 ) ] = 1;
               vEvento[ CreateVehicle( 556, 1119.4945,1358.9907,10.8203,187.3509, 0, 1, -1 ) ] = 1;
               vEvento[ CreateVehicle( 556, 1116.0231,1359.4000,10.8203,171.9974, 0, 1, -1 ) ] = 1;
               vEvento[ CreateVehicle( 556, 1113.3241,1359.0577,10.8203,178.6500, 0, 1, -1 ) ] = 1;
               ivEvento[ vEvento[ VeiculosEvento ]] = 1;
               SetPlayerPos(playerid,1169.2644,1354.8823,14.5703);
               EventoCriado = 1;
               SendClientMessage( playerid, AZUL_BEST, "| INFO | Evento criado com sucesso!" );
               SendClientMessageToAll( AZUL_BEST, "| BCV-Admin | O(A) %s %s criou o evento ( Derby-Monster ), use /irevento!", CargoAdmin(playerid), PlayerName(playerid) );
   	           GameTextForAll("~y~Evento ~g~Criado ~y~use ~b~/irevento", 6000, 1);
               T_AntBug = 1;
               SetTimer( "CongelarPlayers", 1000, false );
               VeiculosEvento++;
		   }
        }
        return 1;
    }
Reply


Messages In This Thread
SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:11
Re: SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:13
Re: SERVER: Unknowm Command - by wearLy - 26.06.2018, 21:19
Re: SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:25
Re: SERVER: Unknowm Command - by wearLy - 26.06.2018, 21:28
Re: SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:33
Re: SERVER: Unknowm Command - by Felipealves - 26.06.2018, 21:34
Re: SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:40
Re: SERVER: Unknowm Command - by Felipealves - 26.06.2018, 21:42
Re: SERVER: Unknowm Command - by LeonardoMD - 26.06.2018, 21:52

Forum Jump:


Users browsing this thread: 4 Guest(s)