[Ajuda] ChatBubble
#1

PHP код:
ABERTO EXERCITO - portaoEXERCITO = CreateObject(971,  -1987.5, -709.59997558594, 26.299999237061, 0, 0, 179.49462890625);
FECHADO EXERCITO - portaoEXERCITO = CreateObject(971,  -1987.5, -709.59997558594, 33.099998474121, 0, 0, 179.5); 
PHP код:
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,-1987.5, -709.599, 26.299,179);
                
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;
    } 
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: 1 Guest(s)