SA-MP Forums Archive
[Pedido] PORTГO EXERCITO - 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: [Pedido] PORTГO EXERCITO (/showthread.php?tid=633193)



PORTГO EXERCITO - BrGabrielBr - 26.04.2017

PHP код:
ABERTO EXERCITO portaoEXERCITO CreateObject(971,  -1987.5, -709.5999755859426.29999923706100179.49462890625); 
FECHADO EXERCITO portaoEXERCITO CreateObject(971,  -1987.5, -709.5999755859433.09999847412100179.5);  
 if(
strcmp(cmd"/apext"true) == 0
    { 
        
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer)); 
        
GetPlayerName(playeridsendernamesizeof(sendername)); 
        if(
Player[playerid][pLogged] == true
        { 
            if(
Player[playerid][pEXT] >= 1
            { 
                
MoveObject(portaoEXT,-1987.5, -709.59926.299,179); 
                
SetTimerEx("FecharPortaoEXT"50000"i"playerid); 
                for(new 
i=0<= MAX_PLAYERSi++) 
                if(
GetDistanceBetweenPlayers(playeridi) <= 20
                { 
                    
format(string256"* Portгo fecharб em 5 segundos."); 
                    
SendClientMessage(i,COR_ROXO,string); 
                } 
            } 
            else 
            { 
                
SendClientMessage(playeridCOR_ERRO"Vocк nгo tem permissгo para usar este comando!"); 
                return 
1
            } 
        } 
        else 
        { 
            
SendClientMessage(playeridCOR_ERRO"Vocк tem que estar logado para usar este comando!"); 
        } 
        return 
1
    } 
Quando eu boto Apext nгo ta indo alguem pode me falar oque e?


Re: PORTГO EXERCITO - Adiiti - 26.04.2017

Tente mudar o MovedObject para

PHP код:
MoveObject(portaoEXT,-1987.5, -709.59926.2991.0/* RotX *//* RotY *//* RotZ */); 



Respuesta: PORTГO EXERCITO - BrGabrielBr - 26.04.2017

Erros mano
Quote:

(6729) : error 029: invalid expression, assumed zero
(6729) : error 035: argument type mismatch (argument 7)




Re: PORTГO EXERCITO - Adiiti - 26.04.2017

Colocou assim ?

PHP код:
MoveObject(portaoEXT,-1987.5, -709.59926.2991.00.00.0179.49462890625); 



Respuesta: PORTГO EXERCITO - BrGabrielBr - 26.04.2017

botei compilei e n abriu


Respuesta: PORTГO EXERCITO - BrGabrielBr - 26.04.2017

ALGUEM !!! AJUDA - ME


Re: PORTГO EXERCITO - Adiiti - 26.04.2017

Manda o CreateObject normal como estб no seu GM


Re: PORTГO EXERCITO - Scorpion659 - 26.04.2017

vc definiu forward FecharPortaoEXT(playerid); ?


Respuesta: PORTГO EXERCITO - BrGabrielBr - 26.04.2017

Quote:

// =============================== [ COMANDO /apext Abrir Portao do Exercito ] ===============================================
if(strcmp(cmd, "/apext", true) == 0)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(Player[playerid][pLogged] == true)
{
if(Player[playerid][pEXT] >= 1)
{
MoveObject(portaoEXT,184.9000, 1798.4000, 10.7800,10);
SetTimerEx("FecharPortaoEXT", 5000, 0, "i", playerid);
for(new i=0; i <= MAX_PLAYERS; i++)
if(GetDistanceBetweenPlayers(playerid, i) <= 20)
{
format(string, 256, "* Portгo fecharб em 5 segundos.");
SendClientMessage(i,COR_ROXO,string);
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem permissгo para usar este comando!");
return 1;
}
}
else
{
SendClientMessage(playerid, COR_ERRO, "Vocк tem que estar logado para usar este comando!");
}
return 1;
}

ai mano tipo tem o
Quote:

forward FecharPortaoEXT(playerid);

tambem


Respuesta: PORTГO EXERCITO - BrGabrielBr - 26.04.2017

Alguem ajuda?