[Ajuda] Chave a mais, chave a menos.. nгo sei. e.e
#1

Entгo pessoal, neste cуdigo aqui tб dando erro de problema com o pawno.. aquele que fecha o pawno por causa que tem uma chave a mais ou a menos..

PHP код:
if(strcmp(cmd,"/roubar",true)==0)
{
    if(
PlayerInfo[playerid][pMembro] != && PlayerInfo[playerid][pLider] != 5
    
&& PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14
    
&& PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17
    
&& PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18
    
&& PlayerInfo[playerid][pMembro] != 19 && PlayerInfo[playerid][pLider] != 19
    
&& PlayerInfo[playerid][pMembro] != 20 && PlayerInfo[playerid][pLider] != 20
    
&& PlayerInfo[playerid][pMembro] != 21 && PlayerInfo[playerid][pLider] != 21
    
&& GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 12
    
&& GetPlayerOrg(playerid) != 13    && GetPlayerOrg(playerid) != 15
    
&& GetPlayerOrg(playerid) != 23)
    {
        
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode assaltar !");
        return 
true;
    }
    if(
roubando[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_GRAD5"Vocк ja estб roubando algum lugar.");
        return 
true;
    }
    if(
PlayerToPoint(2.0,playerid2144.4177,1641.5360,993.5761))
    {
        if(
roubobanco == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
            return 
true;
        }
        if(
temporoubobanco == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar o banco.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo ao Banco");
        
roubando[playerid] = 1;
        
ProvocoBanco[playerid] = 1;
        
roubobanco 1;
        
temporoubobanco 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid2144.3711,1641.4792,993.5761);
        
SetPlayerFacingAngle(playerid,1.2666);
        
SetTimer("Aroubo"2200000);
        
SetTimerEx("AnimRouboBanco"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
tempobanco SetTimerEx("RouboBanco"400000"i"playerid);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    else if(
PlayerToPoint(2.0,playerid,820.6042,8.3990,1004.1962))
    {
        if(
roubolot == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
            return 
true;
        }
        if(
temporoubolot == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Lotйrica{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre da Lotйrica! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Lotйrica.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Lotйrica");
        
roubando[playerid] = 1;
        
ProvocoLot[playerid] = 1;
        
roubolot 1;
        
temporoubolot 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid820.9382,8.4020,1004.1957);
        
SetPlayerFacingAngle(playerid,91.2409);
        
SetTimer("Aroubo2"2200000);
        
tempolot SetTimerEx("RouboLot"400000"i"playerid);
        
SetTimerEx("AnimRouboLot"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    else if(
PlayerToPoint(2.0,playerid,303.9740,-168.8060,999.5938))
    {
        if(
rouboloja1 == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
            return 
true;
        }
        if(
temporouboloja1 == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 1 espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Loja de Armas{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Loja de Armas 1! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Loja de Armas 1.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Armas 1");
        
roubando[playerid] = 1;
        
ProvocoLoja1[playerid] = 1;
        
rouboloja1 1;
        
temporouboloja1 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid303.9886,-169.0725,999.5938);
        
SetPlayerFacingAngle(playerid,178.6149);
        
SetTimer("Aroubo3"2200000);
        
tempoloja1 SetTimerEx("RouboLoja1"400000"i"playerid);
        
SetTimerEx("AnimRouboLoja"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    else if(
PlayerToPoint(2.0,playerid,294.8272,-57.8448,1001.5156))
    {
        if(
rouboloja2 == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
            return 
true;
        }
        if(
temporouboloja2 == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Ammu Nation espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Ammu Nation{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Ammu Nation! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Ammu Nation.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Ammu Nation");
        
roubando[playerid] = 1;
        
ProvocoLoja2[playerid] = 1;
        
rouboloja2 1;
        
temporouboloja2 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid294.8029,-57.8727,1001.5156);
        
SetPlayerFacingAngle(playerid,356.5900);
        
SetTimer("Aroubo4"2200000);
        
tempoloja2 SetTimerEx("RouboLoja2"400000"i"playerid);
        
SetTimerEx("AnimRouboAmmu"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    
//========== BINCO ==================================================================================
    
else if(PlayerToPoint(2.0,playerid,211.3917,-96.1839,1005.2578))
    {
        if(
roubobinco == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return 
true;
        }
        if(
temporoubobinco == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Binco espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Binco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Binco ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Binco.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoBinco[playerid] = 1;
        
roubobinco 1;
        
temporoubobinco 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid211.3817,-96.1272,1005.2578);
        
SetPlayerFacingAngle(playerid,2.5667);
        
SetTimer("Aroubo6"2200000);
        
tempobinco SetTimerEx("RouboBinco"400000"i"playerid);
        
SetTimerEx("AnimRouboBinco"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    
//================= ZIP =========================================================================
    
else if(PlayerToPoint(2.0,playerid,162.1060,-79.8251,1001.8047))
    {
        if(
roubozip == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return 
true;
        }
        if(
temporoubozip == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Zip espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Zip{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Zip ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Zip.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoZip[playerid] = 1;
        
roubozip 1;
        
temporoubozip 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid162.1254,-79.7925,1001.8047);
        
SetPlayerFacingAngle(playerid,269.5058);
        
SetTimer("Aroubo7"2200000);
        
tempozip SetTimerEx("RouboZip"400000"i"playerid);
        
SetTimerEx("AnimRouboZip"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    }
    
//================= VICTIM =========================================================================
    
else if(PlayerToPoint(2.0,playerid,205.4029,-11.5629,1005.2109))
    {
        if(
roubovictim == 1)
        {
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return 
true;
        }
        if(
temporoubovictim == 1)
        {
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Victim espere 3 minutos para roubar de novo !");
            return 
true;
        }
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Victim ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Victim.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoVictim[playerid] = 1;
        
roubovictim 1;
        
temporoubovictim 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid205.4959,-11.5585,1005.2109);
        
SetPlayerFacingAngle(playerid,90.3009);
        
SetTimer("Aroubo8"2200000);
        
SetTimerEx("AnimRouboVictim"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
        return 
true;
    } 
Jб usei o site do bruno.. e diz que estб nesta linha:

257/258

Mas eu vi o cуdigo e a linha, e simplesmente nгo sei como tб dando este erro.. ajudem. e.e
Reply
#2

й sу vocк contar as chaves que estгo abertas depois conte-as que estгo fechando eu jб acabei de achar esse erro mais nгo vou passar para vocк largar de ser preguiзoso , atй contar chaves agora vocк quer й?
Reply
#3

"Mas eu vi o cуdigo e a linha, e simplesmente nгo sei como tб dando este erro.. ajudem. e.e"

Significa: procurei e nгo achei, o que tem de preguiзoso nisso?
Reply
#4

PHP код:
if(strcmp(cmd,"/roubar",true)==0

    if(
PlayerInfo[playerid][pMembro] != && PlayerInfo[playerid][pLider] != 
    
&& PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14 
    
&& PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17 
    
&& PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18 
    
&& PlayerInfo[playerid][pMembro] != 19 && PlayerInfo[playerid][pLider] != 19 
    
&& PlayerInfo[playerid][pMembro] != 20 && PlayerInfo[playerid][pLider] != 20 
    
&& PlayerInfo[playerid][pMembro] != 21 && PlayerInfo[playerid][pLider] != 21 
    
&& GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 12 
    
&& GetPlayerOrg(playerid) != 13    && GetPlayerOrg(playerid) != 15 
    
&& GetPlayerOrg(playerid) != 23
    { 
        
SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode assaltar !"); 
        return 
true
    } 
    if(
roubando[playerid] == 1
    { 
        
SendClientMessage(playeridCOLOR_GRAD5"Vocк ja estб roubando algum lugar."); 
        return 
true
    } 
    if(
PlayerToPoint(2.0,playerid2144.4177,1641.5360,993.5761)) 
    { 
        if(
roubobanco == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre."); 
            return 
true
        } 
        if(
temporoubobanco == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar o banco."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo ao Banco"); 
        
roubando[playerid] = 1
        
ProvocoBanco[playerid] = 1
        
roubobanco 1
        
temporoubobanco 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid2144.3711,1641.4792,993.5761); 
        
SetPlayerFacingAngle(playerid,1.2666); 
        
SetTimer("Aroubo"2200000); 
        
SetTimerEx("AnimRouboBanco"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
tempobanco SetTimerEx("RouboBanco"400000"i"playerid); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    else if(
PlayerToPoint(2.0,playerid,820.6042,8.3990,1004.1962)) 
    { 
        if(
roubolot == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre."); 
            return 
true
        } 
        if(
temporoubolot == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Lotйrica{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre da Lotйrica! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Lotйrica."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Lotйrica"); 
        
roubando[playerid] = 1
        
ProvocoLot[playerid] = 1
        
roubolot 1
        
temporoubolot 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid820.9382,8.4020,1004.1957); 
        
SetPlayerFacingAngle(playerid,91.2409); 
        
SetTimer("Aroubo2"2200000); 
        
tempolot SetTimerEx("RouboLot"400000"i"playerid); 
        
SetTimerEx("AnimRouboLot"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    else if(
PlayerToPoint(2.0,playerid,303.9740,-168.8060,999.5938)) 
    { 
        if(
rouboloja1 == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja."); 
            return 
true
        } 
        if(
temporouboloja1 == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 1 espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Loja de Armas{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Loja de Armas 1! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Loja de Armas 1."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Armas 1"); 
        
roubando[playerid] = 1
        
ProvocoLoja1[playerid] = 1
        
rouboloja1 1
        
temporouboloja1 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid303.9886,-169.0725,999.5938); 
        
SetPlayerFacingAngle(playerid,178.6149); 
        
SetTimer("Aroubo3"2200000); 
        
tempoloja1 SetTimerEx("RouboLoja1"400000"i"playerid); 
        
SetTimerEx("AnimRouboLoja"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    else if(
PlayerToPoint(2.0,playerid,294.8272,-57.8448,1001.5156)) 
    { 
        if(
rouboloja2 == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja."); 
            return 
true
        } 
        if(
temporouboloja2 == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Ammu Nation espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Ammu Nation{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Ammu Nation! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Ammu Nation."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Ammu Nation"); 
        
roubando[playerid] = 1
        
ProvocoLoja2[playerid] = 1
        
rouboloja2 1
        
temporouboloja2 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid294.8029,-57.8727,1001.5156); 
        
SetPlayerFacingAngle(playerid,356.5900); 
        
SetTimer("Aroubo4"2200000); 
        
tempoloja2 SetTimerEx("RouboLoja2"400000"i"playerid); 
        
SetTimerEx("AnimRouboAmmu"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    
//========== BINCO ================================================================================== 
    
else if(PlayerToPoint(2.0,playerid,211.3917,-96.1839,1005.2578)) 
    { 
        if(
roubobinco == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas."); 
            return 
true
        } 
        if(
temporoubobinco == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Binco espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Binco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Binco ! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Binco."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas"); 
        
roubando[playerid] = 1
        
ProvocoBinco[playerid] = 1
        
roubobinco 1
        
temporoubobinco 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid211.3817,-96.1272,1005.2578); 
        
SetPlayerFacingAngle(playerid,2.5667); 
        
SetTimer("Aroubo6"2200000); 
        
tempobinco SetTimerEx("RouboBinco"400000"i"playerid); 
        
SetTimerEx("AnimRouboBinco"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    
//================= ZIP ========================================================================= 
    
else if(PlayerToPoint(2.0,playerid,162.1060,-79.8251,1001.8047)) 
    { 
        if(
roubozip == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas."); 
            return 
true
        } 
        if(
temporoubozip == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Zip espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Zip{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Zip ! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Zip."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas"); 
        
roubando[playerid] = 1
        
ProvocoZip[playerid] = 1
        
roubozip 1
        
temporoubozip 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid162.1254,-79.7925,1001.8047); 
        
SetPlayerFacingAngle(playerid,269.5058); 
        
SetTimer("Aroubo7"2200000); 
        
tempozip SetTimerEx("RouboZip"400000"i"playerid); 
        
SetTimerEx("AnimRouboZip"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    } 
    
//================= VICTIM ========================================================================= 
    
else if(PlayerToPoint(2.0,playerid,205.4029,-11.5629,1005.2109)) 
    { 
        if(
roubovictim == 1
        { 
            
SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas."); 
            return 
true
        } 
        if(
temporoubovictim == 1
        { 
            
SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Victim espere 3 minutos para roubar de novo !"); 
            return 
true
        } 
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME); 
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"); 
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Victim ! ID:[%d]"playernameNomeORG(playerid) , playerid); 
        
SendClientMessageToAll(GetPlayerColor(playerid), string); 
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Victim."); 
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas"); 
        
roubando[playerid] = 1
        
ProvocoVictim[playerid] = 1
        
roubovictim 1
        
temporoubovictim 1
        
Controle(playerid0); 
        
SetPlayerPos(playerid205.4959,-11.5585,1005.2109); 
        
SetPlayerFacingAngle(playerid,90.3009); 
        
SetTimer("Aroubo8"2200000); 
        
SetTimerEx("AnimRouboVictim"9000"i"playerid); 
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010); 
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000); 
        
SetTimerEx("AcabarMochila"1200000"i"playerid); 
        return 
true
    }

Reply
#5

Quote:
Originally Posted by duuuwh
Посмотреть сообщение
"Mas eu vi o cуdigo e a linha, e simplesmente nгo sei como tб dando este erro.. ajudem. e.e"

Significa: procurei e nгo achei, o que tem de preguiзoso nisso?
ok lб no ultimo de tudo lб coloca

}
Reply
#6

PHP код:
if(strcmp(cmd,"/roubar",true)==0)
{
    if(
PlayerInfo[playerid][pMembro] != && PlayerInfo[playerid][pLider] != 5
    
&& PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14
    
&& PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17
    
&& PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18
    
&& PlayerInfo[playerid][pMembro] != 19 && PlayerInfo[playerid][pLider] != 19
    
&& PlayerInfo[playerid][pMembro] != 20 && PlayerInfo[playerid][pLider] != 20
    
&& PlayerInfo[playerid][pMembro] != 21 && PlayerInfo[playerid][pLider] != 21
    
&& GetPlayerOrg(playerid) != && GetPlayerOrg(playerid) != 12
    
&& GetPlayerOrg(playerid) != 13    && GetPlayerOrg(playerid) != 15
    
&& GetPlayerOrg(playerid) != 23) return SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode assaltar !");
    if(
roubando[playerid] == 1) return SendClientMessage(playeridCOLOR_GRAD5"Vocк ja estб roubando algum lugar.");
    if(
PlayerToPoint(2.0,playerid2144.4177,1641.5360,993.5761))
    {
        if(
roubobanco == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
        if(
temporoubobanco == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar o banco.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo ao Banco");
        
roubando[playerid] = 1;
        
ProvocoBanco[playerid] = 1;
        
roubobanco 1;
        
temporoubobanco 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid2144.3711,1641.4792,993.5761);
        
SetPlayerFacingAngle(playerid,1.2666);
        
SetTimer("Aroubo"2200000);
        
SetTimerEx("AnimRouboBanco"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
tempobanco SetTimerEx("RouboBanco"400000"i"playerid);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    else if(
PlayerToPoint(2.0,playerid,820.6042,8.3990,1004.1962))
    {
        if(
roubolot == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nesse cofre.");
        if(
temporoubolot == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Lotйrica{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar o cofre da Lotйrica! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Lotйrica.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Lotйrica");
        
roubando[playerid] = 1;
        
ProvocoLot[playerid] = 1;
        
roubolot 1;
        
temporoubolot 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid820.9382,8.4020,1004.1957);
        
SetPlayerFacingAngle(playerid,91.2409);
        
SetTimer("Aroubo2"2200000);
        
tempolot SetTimerEx("RouboLot"400000"i"playerid);
        
SetTimerEx("AnimRouboLot"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    else if(
PlayerToPoint(2.0,playerid,303.9740,-168.8060,999.5938))
    {
        if(
rouboloja1 == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
        if(
temporouboloja1 == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 1 espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Loja de Armas{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Loja de Armas 1! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Loja de Armas 1.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Armas 1");
        
roubando[playerid] = 1;
        
ProvocoLoja1[playerid] = 1;
        
rouboloja1 1;
        
temporouboloja1 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid303.9886,-169.0725,999.5938);
        
SetPlayerFacingAngle(playerid,178.6149);
        
SetTimer("Aroubo3"2200000);
        
tempoloja1 SetTimerEx("RouboLoja1"400000"i"playerid);
        
SetTimerEx("AnimRouboLoja"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    else if(
PlayerToPoint(2.0,playerid,294.8272,-57.8448,1001.5156))
    {
        if(
rouboloja2 == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa loja.");
        if(
temporouboloja2 == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Ammu Nation espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Ammu Nation{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Ammu Nation! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Ammu Nation.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Ammu Nation");
        
roubando[playerid] = 1;
        
ProvocoLoja2[playerid] = 1;
        
rouboloja2 1;
        
temporouboloja2 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid294.8029,-57.8727,1001.5156);
        
SetPlayerFacingAngle(playerid,356.5900);
        
SetTimer("Aroubo4"2200000);
        
tempoloja2 SetTimerEx("RouboLoja2"400000"i"playerid);
        
SetTimerEx("AnimRouboAmmu"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    
//========== BINCO ==================================================================================
    
else if(PlayerToPoint(2.0,playerid,211.3917,-96.1839,1005.2578))
    {
        if(
roubobinco == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
        if(
temporoubobinco == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Binco espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Binco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Binco ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Binco.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoBinco[playerid] = 1;
        
roubobinco 1;
        
temporoubobinco 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid211.3817,-96.1272,1005.2578);
        
SetPlayerFacingAngle(playerid,2.5667);
        
SetTimer("Aroubo6"2200000);
        
tempobinco SetTimerEx("RouboBinco"400000"i"playerid);
        
SetTimerEx("AnimRouboBinco"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    
//================= ZIP =========================================================================
    
else if(PlayerToPoint(2.0,playerid,162.1060,-79.8251,1001.8047))
    {
        if(
roubozip == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
        if(
temporoubozip == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Zip espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Zip{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Zip ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Zip.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoZip[playerid] = 1;
        
roubozip 1;
        
temporoubozip 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid162.1254,-79.7925,1001.8047);
        
SetPlayerFacingAngle(playerid,269.5058);
        
SetTimer("Aroubo7"2200000);
        
tempozip SetTimerEx("RouboZip"400000"i"playerid);
        
SetTimerEx("AnimRouboZip"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    
//================= VICTIM =========================================================================
    
else if(PlayerToPoint(2.0,playerid,205.4029,-11.5629,1005.2109))
    {
        if(
roubovictim == 1) return SendClientMessage(playeridCOLOR_GRAD5"Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
        if(
temporoubovictim == 1) return SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Victim espere 3 minutos para roubar de novo !");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        
SendClientMessageToAll(COLOR_WHITE"(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        
format(stringsizeof(string), "%s e os %s estгo tentando roubar a Victim ! ID:[%d]"playernameNomeORG(playerid) , playerid);
        
SendClientMessageToAll(GetPlayerColor(playerid), string);
        
SendClientMessage(playeridCOLOR_GRAD5"Espere 40 segundos para terminar de roubar a Victim.");
        
SetPlayerCriminal(playerid,255"Tentativa de Roubo a Loja de Roupas");
        
roubando[playerid] = 1;
        
ProvocoVictim[playerid] = 1;
        
roubovictim 1;
        
temporoubovictim 1;
        
Controle(playerid0);
        
SetPlayerPos(playerid205.4959,-11.5585,1005.2109);
        
SetPlayerFacingAngle(playerid,90.3009);
        
SetTimer("Aroubo8"2200000);
        
SetTimerEx("AnimRouboVictim"9000"i"playerid);
        
ApplyAnimation(playerid"ROB_BANK""CAT_Safe_Rob"4.010010);
        
SetPlayerAttachedObject(playerid0155010.000000, -0.3136110.0210030.44549086.754409355.3702390.9268151.0000001.000000);
        
SetTimerEx("AcabarMochila"1200000"i"playerid);
    }
    else return 
SendClientMessage(playerid, -1"Vocк nгo estб em um lugar que pode ser roubado.");
    return 
1;

Reply
#7

Ainda nгo deu.. й sу eu tirar o cуdigo que compila normalmente. e.e
Reply
#8

pawn Код:
if(strcmp(cmd,"/roubar",true)==0)
{

    if(PlayerInfo[playerid][pMembro] != 5 && PlayerInfo[playerid][pLider] != 5
    && PlayerInfo[playerid][pMembro] != 14 && PlayerInfo[playerid][pLider] != 14
    && PlayerInfo[playerid][pMembro] != 17 && PlayerInfo[playerid][pLider] != 17
    && PlayerInfo[playerid][pMembro] != 18 && PlayerInfo[playerid][pLider] != 18
    && PlayerInfo[playerid][pMembro] != 19 && PlayerInfo[playerid][pLider] != 19
    && PlayerInfo[playerid][pMembro] != 20 && PlayerInfo[playerid][pLider] != 20
    && PlayerInfo[playerid][pMembro] != 21 && PlayerInfo[playerid][pLider] != 21
    && GetPlayerOrg(playerid) != 6 && GetPlayerOrg(playerid) != 12
    && GetPlayerOrg(playerid) != 13    && GetPlayerOrg(playerid) != 15
    && GetPlayerOrg(playerid) != 23)
    {

        SendClientMessage(playerid,COLOR_GREY,"Vocк nгo pode assaltar !");
        return true;
    }
    if(roubando[playerid] == 1)
    {

        SendClientMessage(playerid, COLOR_GRAD5, "Vocк ja estб roubando algum lugar.");
        return true;
    }
    if(PlayerToPoint(2.0,playerid, 2144.4177,1641.5360,993.5761))
    {

        if(roubobanco == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
            return true;
        }
        if(temporoubobanco == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre do banco espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto ao Banco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar o cofre banco! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar o banco.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo ao Banco");
        roubando[playerid] = 1;
        ProvocoBanco[playerid] = 1;
        roubobanco = 1;
        temporoubobanco = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 2144.3711,1641.4792,993.5761);
        SetPlayerFacingAngle(playerid,1.2666);
        SetTimer("Aroubo", 220000, 0);
        SetTimerEx("AnimRouboBanco", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        tempobanco = SetTimerEx("RouboBanco", 40000, 0, "i", playerid);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    else if(PlayerToPoint(2.0,playerid,820.6042,8.3990,1004.1962))
    {

        if(roubolot == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nesse cofre.");
            return true;
        }
        if(temporoubolot == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram o cofre da Lotйrica espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Lotйrica{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar o cofre da Lotйrica! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Lotйrica.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Lotйrica");
        roubando[playerid] = 1;
        ProvocoLot[playerid] = 1;
        roubolot = 1;
        temporoubolot = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 820.9382,8.4020,1004.1957);
        SetPlayerFacingAngle(playerid,91.2409);
        SetTimer("Aroubo2", 220000, 0);
        tempolot = SetTimerEx("RouboLot", 40000, 0, "i", playerid);
        SetTimerEx("AnimRouboLot", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    else if(PlayerToPoint(2.0,playerid,303.9740,-168.8060,999.5938))
    {

        if(rouboloja1 == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa loja.");
            return true;
        }
        if(temporouboloja1 == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Loja de Armas 1 espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Loja de Armas{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar a Loja de Armas 1! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Loja de Armas 1.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Armas 1");
        roubando[playerid] = 1;
        ProvocoLoja1[playerid] = 1;
        rouboloja1 = 1;
        temporouboloja1 = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 303.9886,-169.0725,999.5938);
        SetPlayerFacingAngle(playerid,178.6149);
        SetTimer("Aroubo3", 220000, 0);
        tempoloja1 = SetTimerEx("RouboLoja1", 40000, 0, "i", playerid);
        SetTimerEx("AnimRouboLoja", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    else if(PlayerToPoint(2.0,playerid,294.8272,-57.8448,1001.5156))
    {

        if(rouboloja2 == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa loja.");
            return true;
        }
        if(temporouboloja2 == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Ammu Nation espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Ammu Nation{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar a Ammu Nation! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Ammu Nation.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Ammu Nation");
        roubando[playerid] = 1;
        ProvocoLoja2[playerid] = 1;
        rouboloja2 = 1;
        temporouboloja2 = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 294.8029,-57.8727,1001.5156);
        SetPlayerFacingAngle(playerid,356.5900);
        SetTimer("Aroubo4", 220000, 0);
        tempoloja2 = SetTimerEx("RouboLoja2", 40000, 0, "i", playerid);
        SetTimerEx("AnimRouboAmmu", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    //========== BINCO ==================================================================================
    else if(PlayerToPoint(2.0,playerid,211.3917,-96.1839,1005.2578))
    {

        if(roubobinco == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return true;
        }
        if(temporoubobinco == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Binco espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Binco{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar a Binco ! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Binco.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Roupas");
        roubando[playerid] = 1;
        ProvocoBinco[playerid] = 1;
        roubobinco = 1;
        temporoubobinco = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 211.3817,-96.1272,1005.2578);
        SetPlayerFacingAngle(playerid,2.5667);
        SetTimer("Aroubo6", 220000, 0);
        tempobinco = SetTimerEx("RouboBinco", 40000, 0, "i", playerid);
        SetTimerEx("AnimRouboBinco", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    //================= ZIP =========================================================================
    else if(PlayerToPoint(2.0,playerid,162.1060,-79.8251,1001.8047))
    {

        if(roubozip == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return true;
        }
        if(temporoubozip == 1)
        {

            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Zip espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Zip{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar a Zip ! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Zip.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Roupas");
        roubando[playerid] = 1;
        ProvocoZip[playerid] = 1;
        roubozip = 1;
        temporoubozip = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 162.1254,-79.7925,1001.8047);
        SetPlayerFacingAngle(playerid,269.5058);
        SetTimer("Aroubo7", 220000, 0);
        tempozip = SetTimerEx("RouboZip", 40000, 0, "i", playerid);
        SetTimerEx("AnimRouboZip", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    //================= VICTIM =========================================================================
    else if(PlayerToPoint(2.0,playerid,205.4029,-11.5629,1005.2109))
    {

        if(roubovictim == 1)
        {

            SendClientMessage(playerid, COLOR_GRAD5, "Jб estб tendo uma tentativa de roubo nessa Loja de Roupas.");
            return true;
        }
        if(temporoubovictim == 1)
        {
            SendClientMessage(playerid,COLOR_GREY,"Jб roubaram a Victim espere 3 minutos para roubar de novo !");
            return true;
        }
        GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
        SendClientMessageToAll(COLOR_WHITE, "(=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=({FFD700}Assalto а Victim{BFC0C2})=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)");
        format(string, sizeof(string), "%s e os %s estгo tentando roubar a Victim ! ID:[%d]", playername, NomeORG(playerid) , playerid);
        SendClientMessageToAll(GetPlayerColor(playerid), string);
        SendClientMessage(playerid, COLOR_GRAD5, "Espere 40 segundos para terminar de roubar a Victim.");
        SetPlayerCriminal(playerid,255, "Tentativa de Roubo a Loja de Roupas");
        roubando[playerid] = 1;
        ProvocoVictim[playerid] = 1;
        roubovictim = 1;
        temporoubovictim = 1;
        Controle(playerid, 0);
        SetPlayerPos(playerid, 205.4959,-11.5585,1005.2109);
        SetPlayerFacingAngle(playerid,90.3009);
        SetTimer("Aroubo8", 220000, 0);
        SetTimerEx("AnimRouboVictim", 900, 0, "i", playerid);
        ApplyAnimation(playerid, "ROB_BANK", "CAT_Safe_Rob", 4.0, 1, 0, 0, 1, 0);
        SetPlayerAttachedObject(playerid, 0, 1550, 1, 0.000000, -0.313611, 0.021003, 0.445490, 86.754409, 355.370239, 0.926815, 1.000000, 1.000000);
        SetTimerEx("AcabarMochila", 120000, 0, "i", playerid);
        return true;
    }
    return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)