[ajuda] 1 erro
#10

Tente:

pawn Код:
//topo do FS
new portao;
new portao2;
new portao3;

//na public commandtext
{
        if (strcmp("/abrirportao", cmdtext, true, 10) == 0)
        {
            new name[24];
            GetPlayerName(playerid, name, sizeof(name));
            if(strcmp("[TB]", name, true) == 0)
            {
                if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
                {
                    portao = MoveObject(21, 2375.0532, -2646.1162, 12.6900, 2.0);
                    SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
                }


        else if (strcmp("abrirportao2", cmdtext, true, 10) == 0)

                if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
                {
                   portao2 = MoveObject(12, 2424.7588, -2416.4624, 12.2100, 2.0);
                    SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
                }

        else if (strcmp("abrirportao3", cmdtext, true, 10) == 0)

                   if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
                {
                    portao3 = MoveObject(57, 2376.3201, -2165.0100, 29.0662, 2.0);
                    SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora aberto :D.");
                }
            }
            return true;
        }
        if (strcmp("/fecharportao", cmdtext, true, 10) == 0)
        {
            if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
            {
                portao = MoveObject(21, 2375.20, -2657.95, 12.69, 2.0);
                SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora fechado :D.");
            }
        else if (strcmp("/fecharportao2", cmdtext, true, 10) == 0)

           if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
            {
                portao2 = MoveObject(12, 2416.79, -2424.33, 12.2, 2.0);
                SendClientMessage(playerid, 0xFF8000FF, "O portгo esta agora fechado :D.");
            }

        else if (strcmp("/fecharportao3", cmdtext, true, 10) == 0)

            if(IsPlayerInRangeOfPoint(playerid, 20, 2375.20, -2657.95, 12.69))
            {
                MoveObject(57, 2376.32, -2165.01, 21.01, 2.0);
                SendClientMessage(playerid, 0xFF8000FF, "O portгo estб agora fechado :D.");
            }
            return true;
        }
        return false;
}
Reply


Messages In This Thread
[ajuda] 1 erro - by array13 - 02.09.2011, 16:56
Re: [ajuda] 1 erro - by [R] ousenber [K] - 02.09.2011, 16:57
Re: [ajuda] 1 erro - by Shadoww5 - 02.09.2011, 17:14
Re: [ajuda] 1 erro - by array13 - 02.09.2011, 17:31
Re: [ajuda] 1 erro - by JonathanFeitosa - 02.09.2011, 17:41
Re: [ajuda] 1 erro - by array13 - 02.09.2011, 17:44
Re: [ajuda] 1 erro - by JonathanFeitosa - 02.09.2011, 17:52
Re: [ajuda] 1 erro - by array13 - 02.09.2011, 17:53
Re: [ajuda] 1 erro - by array13 - 02.09.2011, 18:03
Re: [ajuda] 1 erro - by Cristhian - 03.09.2011, 02:08

Forum Jump:


Users browsing this thread: 2 Guest(s)