SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 02/06/2020, 06:22 PM   #1
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 380
Reputation: 10
Angry bug desert eagle

quando mato com desert eagle o jogador não morre e fica bugado no chão e consegue atira em min
Link da imagem
e quando ele me mata bugado e dou /ir e vou nele ele fica assim Link da Imagem
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro

Last edited by Hatiro; 02/06/2020 at 11:38 PM.
Hatiro is offline   Reply With Quote
Old 02/06/2020, 11:36 PM   #2
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 380
Reputation: 10
Default Re: bug desert eagle

@up alguém coloquei imagens [IMG] não ta funcionando
Code:
https://prnt.sc/ssjhi9
https://prnt.sc/ssjh9n
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro
Hatiro is offline   Reply With Quote
Old 02/06/2020, 11:57 PM   #3
darkxdll
High-roller
 
darkxdll's Avatar
 
Join Date: Jul 2012
Location: C:\Windows\DLLs
Posts: 1,634
Reputation: 89
Default Re: bug desert eagle

Difícil adivinhar só vendo imagens, posta o código de onde está o problema.
darkxdll is offline   Reply With Quote
Old 03/06/2020, 12:19 AM   #4
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 380
Reputation: 10
Default Re: bug desert eagle

darkxdll tem 6 problema
Code:
warning 219: local variable "tmp" shadows a variable at a preceding level
esses warn acredito que não muda nada e pode ser no OnPlayerDeath código Bola de Cristal . Link
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro
Hatiro is offline   Reply With Quote
Old 03/06/2020, 02:44 AM   #5
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 380
Reputation: 10
Default Re: bug desert eagle

Quote:
Originally Posted by Hatiro View Post
darkxdll tem 6 problema
Code:
warning 219: local variable "tmp" shadows a variable at a preceding level
esses warn acredito que não muda nada e pode ser no OnPlayerDeath código Bola de Cristal . Link
o link se encontra aqui código "Bola de Cristal . Link "
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro
Hatiro is offline   Reply With Quote
Old 03/06/2020, 01:36 AM   #6
Hatiro
Huge Clucker
 
Hatiro's Avatar
 
Join Date: Mar 2019
Posts: 380
Reputation: 10
Default Re: bug desert eagle

@up alguém?
__________________
https://pastebin.com/raw/KpFdDhaa]Projects
se eu lhe ajudei clique numa imagem assim perto da minha postagem para adicionar reputação,Scripts https://pastebin.com/u/Hatiro
Hatiro is offline   Reply With Quote
Old 03/06/2020, 02:39 AM   #7
k2bi
Big Clucker
 
k2bi's Avatar
 
Join Date: Sep 2017
Location: Novo Horizonte - SP
Posts: 186
Reputation: 5
Default Re: bug desert eagle

Mostre OnPlayerDeath
k2bi is offline   Reply With Quote
Old 03/06/2020, 02:59 AM   #8
k2bi
Big Clucker
 
k2bi's Avatar
 
Join Date: Sep 2017
Location: Novo Horizonte - SP
Posts: 186
Reputation: 5
Default Re: bug desert eagle

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    
InShamal[playerid] = 0;
    
SetPlayerVirtualWorld(playerid0);
    if(
gPlayerUsingLoopingAnim[playerid])
    {
        
gPlayerUsingLoopingAnim[playerid] = 0;
        
TextDrawHideForPlayer(playerid,txtAnimHelper);
    }
    if (
killerid == INVALID_PLAYER_ID) {SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);}
    
SendDeathMessage(killerid,playerid,reason);
    if (
gTeam[killerid] != gTeam[playerid])
    {
        
// Valid kill
        
GivePlayerMoney(killerid5000);
        
exp[killerid] ++;
        
SetPlayerScore(killeridexp[killerid]);
        new 
Kzone IsInZone(killerid);
        new 
Vzone IsInZone(playerid);
        if (
Kzone != -&& Kzone == Vzone && gTeam[killerid] != ZoneOwner[Kzone] && UnderAttack[Kzone] == 0)
        {
            
UnderAttack[Kzone]=gTeam[killerid];
            for (new 
i=0;i<MAX_PLAYERS;i++)
            {
                if  (
gTeam[i]==gTeam[killerid])
                {
                    
GameTextForPlayer(i,"ATACK!",5000,5);
                    
SendClientMessage(i,COLOR_BRIGHTRED,"FIRST GANG WHICH WILL KILL 10 ENEMIES IN AREA.WILL WIN!");
                    
GangZoneFlashForPlayer(i,Kzone,COLOR_BRIGHTRED);
                }
                if  (
gTeam[i]==ZoneOwner[Kzone])
                {
                    
GameTextForPlayer(i,"YOU ARE ATACKED!",5000,5);
                    
SendClientMessage(i,COLOR_BRIGHTRED,"FIRST GANG WHICH WILL KILL 10 ENEMIES IN AREA.WILL WIN!");
                    
GangZoneFlashForPlayer(i,Kzone,COLOR_BRIGHTRED);
                }
            }
        }
        if (
UnderAttack[Kzone]>0)
        {
            if  (
UnderAttack[Kzone]==gTeam[killerid] || gTeam[playerid]==ZoneOwner[Kzone])
            {
                
KillCount[gTeam[killerid]][Kzone]++;
                if (
KillCount[gTeam[killerid]][Kzone] == 10)
                {
                    
UnderAttack[Kzone] = -1;
                    
SetTimerEx("unsafe",300000,0,"d",Kzone);
                    
KillCount[gTeam[killerid]][Kzone]=0;
                    
KillCount[gTeam[playerid]][Kzone]=0;
                    new 
color=getColor(killerid);
                    
GangZoneShowForAll(Kzone,color);
                    for (new 
i=0;i<MAX_PLAYERS;i++)
                    {
                        if  (
gTeam[i]==gTeam[killerid])
                        {
                            
GameTextForPlayer(i,"WE WON!",5000,5);
                            
SendClientMessage(i,COLOR_BRIGHTRED,"ZONE WILL BE SAFE FOR 5 MINUTES.");
                            
GangZoneStopFlashForPlayer(i,Kzone);
                        }
                        if  (
gTeam[i]==ZoneOwner[Kzone])
                        {
                            
GameTextForPlayer(i,"WE LOST!",5000,5);
                            
SendClientMessage(i,COLOR_BRIGHTRED,"YOU HAVE TO WHAIT FOR 5 MINUTES BEFORE ATACKING.");
                            
GangZoneStopFlashForPlayer(i,Kzone);
                        }
                    }
                }
                else
                {
                    new 
kill =10 KillCount[gTeam[killerid]][Kzone];
                    
format(TEXT,sizeof(TEXT),"We still have to kill %d enemies",kill);
                    
SendClientMessage(killerid,COLOR_BRIGHTRED,TEXT);
                }
            }
        }
        else
        {
            
//Team Killer!
            
new warning[256];
            
format(warningsizeof(warning), "Be Careful!You Were Punished for killing Team Member.");
            
SendClientMessage(killerid0xFFFF00AAwarning);
            
SetPlayerScore(killeridGetPlayerScore(killerid) - 1);
            
GivePlayerMoney(killerid, -5000);
        }
    }
    return 
1;

Se o bug persistir, use o printf em todas as condições para ver se todas estão sendo verificadas corretamente quando o player morre.
k2bi is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Desert eagle OP against shotgun? SV General 6 24/06/2015 01:42 AM
[Ajuda] Achar desert eagle eNtinityGaming Português/Portuguese 5 14/02/2014 01:15 PM
[Ajuda] Proibir G de desert eagle luccagomes15 Português/Portuguese 1 02/09/2013 01:32 AM
[Off] Desert Eagle Bug Jumper. Português/Portuguese 21 23/01/2013 07:37 PM
[Map] [MAP]-Desert Eagle Deathmatch. Zh3r0 Maps 8 10/01/2011 06:27 AM


All times are GMT. The time now is 04:53 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.