SA-MP Forums Archive
[Ajuda] ajuda - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] ajuda (/showthread.php?tid=625251)



ajuda - didimk157 - 30.12.2016

PHP код:
 public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart//erro function heading differs from prototype
{
    new 
animlib[32], animname[32];
    
GetAnimationName(GetPlayerAnimationIndex(playerid), animlib32animname32);
    if(
pInfo[playerid][pQuebrado] == 0// Checa se o jogador nao estiver com a perna quebrada
    
{
        if(
amount 15 && strcmp("FALL_FALL"animnametrue) == 0// Quando cai de uma certa altura
        
{
            if(
pInfo[playerid][pQuebrado] == 0)
            {
                
pInfo[playerid][pQuebrado] = 1;
                
GameTextForPlayer(playerid"~w~Broken Leg!"15003);
                
PlayerTextDrawShow(playeridBrokenL[playerid]);
            }
        }
        if(
issuerid != INVALID_PLAYER_ID && weaponid != 0// Quando leva tiro na perna
        
{
            
            if(
amount 20)
            {
                if(
pInfo[playerid][pSangrando] == 0)
                {
                    
pInfo[playerid][pSangrando] = 1;
                    
SangueTimer[playerid] = SetTimerEx("Sangrar"10000true"d"playerid);
                    
PlayerTextDrawShow(playeridBleed[playerid]);
                }
            }
            if(
weaponid == 34 && bodypart == 9)
            {
                if(
pInfo[playerid][pTemCapacete] == 1)
                {
                    
GameTextForPlayer(issuerid"~y~Player Using Helmet!"20003);
                    
GameTextForPlayer(playerid"~g~Helmet Protected You!"20003);
                }
                else
                {
                    
SetPlayerHealth(playerid0);
                    
GameTextForPlayer(issuerid"~r~Headshot!"20003);
                }
            }
            if(
bodypart == || bodypart == 8)
            {
                if(
pInfo[playerid][pQuebrado] == 0// Checa se o jogador n ta com a perna quebrada
                
{
                    
pInfo[playerid][pQuebrado] = 1;
                    
GameTextForPlayer(playerid"~w~Broken Leg!"15003);
                    
PlayerTextDrawShow(playeridBrokenL[playerid]);
                }
            }
        }
    }
    return 
1;




Re: ajuda - iLordGG - 30.12.2016

oq tem de errado? '-' voce pode explicar talvez dai alguem te ajuda


Re: ajuda - didimk157 - 30.12.2016

PHP код:
public OnPlayerTakeDamage(playeridissueridFloat:amountweaponidbodypart//erro funзгo posiзгo difere do protуtipo 



Re: ajuda - didimk157 - 30.12.2016

Esta e a linha


Re: ajuda - JhefTFJ - 30.12.2016

Olhe Amigo vejo vocк fazendo muito Tуpico no Forum Samp e Vejo que a metade do assunto e mas sobre Facзхes, se for o Caso que vocк queira por este Pequeno cуdigo em sua Gamemode de Facзхes Check logo se nгo a essa Mesma Public em sua Gamemode de facзхes, Caso ao Contrario Poste o Erro a onde esta afetando!

PHP код:
public OnPlayerTakeDamage 



Re: ajuda - HeisenGiromB - 30.12.2016

atualize sua include a_samp.


Re: ajuda - didimk157 - 30.12.2016

crrt foi