SA-MP Forums Archive
[Ajuda] ChatBubble - 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: [Ajuda] ChatBubble (/showthread.php?tid=633136)



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); 
PHP код:
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;
    } 
eu botei tudo certinho mas portгo n ta abrindo


Re: ChatBubble - IlanZ - 26.04.2017

format(string,sizeof,"Radinho - %s",Faccoes[t][getPName]);

Para:

format(string,sizeof(string),"Radinho - %s",Faccoes[t][getPName]);


Respuesta: ChatBubble - BrGabrielBr - 26.04.2017

Quote:

(978 : error 076: syntax error in the expression, or invalid function call
(9794) : error 076: syntax error in the expression, or invalid function call
(9800) : error 076: syntax error in the expression, or invalid function call
(9806) : error 076: syntax error in the expression, or invalid function call
(9812) : error 076: syntax error in the expression, or invalid function call
(984 : error 021: symbol already defined: "string"

erros


Re: ChatBubble - IlanZ - 26.04.2017

Mude para isso:

new t;
t = Player[playerid][pFaccoes];

E poste as outras linhas...