[Ajuda] bug desert eagle
#1

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

@up alguйm coloquei imagens [IMG] nгo ta funcionando
Reply
#3

Difнcil adivinhar sу vendo imagens, posta o cуdigo de onde estб o problema.
Reply
#4

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

@up alguйm?
Reply
#6

Mostre OnPlayerDeath
Reply
#7

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 "
Reply
#8

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)