[Ajuda] ChatBubble
#1

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
Reply
#2

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

Para:

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

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
Reply
#4

Mude para isso:

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

E poste as outras linhas...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)