[Ajuda] /x1 id id
#10

Esse comando

Код:
CMD:iniciarx1(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin]>3)
           {
            SendClientMessage(playerid, COLOR_GRAD1, " » Vocк nгo pode usar este comando!");
            return 1;
        }
        new jogador1, jogador2, string[158];
        if(sscanf(params, "ii", jogador1, jogador2)) return SendClientMessage(playerid, -1, "Use: /iniciarx1 [Jogador 1] [Jogador 2]");
        if(  !IsPlayerConnected(jogador1) || !IsPlayerConnected(!jogador2))
        return SendClientMessage(playerid, -1, #ERRO: Coloque um id vбlido );
        new pNAME[24];
        new pNAME2[24];
        new PlayerName[MAX_PLAYERS];
        GetPlayerName(jogador1, pNAME, 24);
        GetPlayerName(jogador2, pNAME2, 24);
        SendClientMessageToAll(COLOR_WHITE, "|_________ Aviso da Administraзгo _________|");
        format(string, sizeof(string), "%s Avisa: Evento X1 de %s contra %s.",PlayerName(playerid), pNAME, pNAME2);
        SendClientMessageToAll(COLOR_WHITE, string);
        //player1
        SetPlayerPos(jogador1, 1403.6039,-20.7303,1000.9115);
        SetPlayerInterior(jogador1, 1);
        SetPlayerFacingAngle(jogador1,90.9610);
        Controle(jogador1, 0);
        SetCameraBehindPlayer(jogador1);
        //player2
        SetPlayerPos(jogador2, 1368.5532,-21.7691,1000.9219);
        SetPlayerInterior(jogador2, 1);
        SetPlayerFacingAngle(jogador2,270.8138);
        Controle(jogador2, 0);
        SetCameraBehindPlayer(jogador2);
        //contagem player 1 e 2
        Contagem(jogador1,jogador2);
        SetPVarInt(jogador1, "3", gettime());
        SetPVarInt(jogador2, "3", gettime());
        return true;
}
Код:
Deu esse erro
: error 012: invalid function call, not a valid address
: warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero
: fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Reply


Messages In This Thread
/x1 id id - by helpmesamp - 13.07.2017, 17:16
Re: /x1 id id - by Jonorusc - 13.07.2017, 18:08
Re: /x1 id id - by s4kuL - 13.07.2017, 18:50
Re: /x1 id id - by MtPlayerZ - 13.07.2017, 19:02
Re: /x1 id id - by s4kuL - 13.07.2017, 19:08
Re: /x1 id id - by helpmesamp - 13.07.2017, 23:41
Re: /x1 id id - by helpmesamp - 13.07.2017, 23:51
Re: /x1 id id - by ayoub12 - 14.07.2017, 00:16
Re: /x1 id id - by helpmesamp - 14.07.2017, 02:15
Re: /x1 id id - by helpmesamp - 14.07.2017, 02:48
Re: /x1 id id - by MtPlayerZ - 14.07.2017, 14:03
Re: /x1 id id - by helpmesamp - 14.07.2017, 15:01
Re: /x1 id id - by s4kuL - 14.07.2017, 19:36
Re: /x1 id id - by helpmesamp - 15.07.2017, 00:17
Re: /x1 id id - by ThiagoMikael - 15.07.2017, 11:43
Re: /x1 id id - by Jonorusc - 15.07.2017, 11:51
Re: /x1 id id - by Jonorusc - 15.07.2017, 13:28
Re: /x1 id id - by Jonorusc - 15.07.2017, 14:14
Re: /x1 id id - by ThiagoMikael - 15.07.2017, 14:19
Re: /x1 id id - by helpmesamp - 15.07.2017, 14:55

Forum Jump:


Users browsing this thread: 5 Guest(s)