Help me pls
#5

I resolved, now i have this problem
PHP код:
C:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2381) : error 010invalid function or declaration
C
:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2420) : warning 217loose indentation
C
:\Users\Kevin11\Desktop\Server\pawno\include\YSI\y_hooks/impl.inc(2428) : error 010invalid function or declaration
C
:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17165) : warning 235: public function lacks forward declaration (symbol "S@@_OnPlayerGiveDamage")
C:\Users\Kevin11\Desktop\Server\gamemodes\RCRP.pwn(17701) : warning 235: public function lacks forward declaration (symbol "S@@_OnPlayerTakeDamage"
Error 17165:
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloat:amountweaponid)
{
        if(
Lesson[playerid] == && GetPlayerWeapon(playerid) == L_ARMA)
        {
            new 
Float:health;
            
GetPlayerHealth(damagedidhealth);
            if(
Lessc[damagedid] == 1) return 1;
            
ClearAnimations(damagedid);
            
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
            
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
            
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
            
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
            
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
            
SetTimerEx("ColpLess",L_TIMER0"i"damagedid);
            
Lessc[damagedid] = 1;
            
TogglePlayerControllable(damagedid0);
            
SetPlayerHealth(damagedidhealth+amount);
        }
        return 
1;

Error: 17701
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    
Hud(playerid);
    
/* COLPITO SUL TORACE */
    
new Float:armatura;
    
GetPlayerArmour(playeridarmatura);

    if(
issuerid != INVALID_PLAYER_ID && bodypart == 3)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    if(
armatura == 0)
    {
    
torace[playerid] = 1;
    
//ApplyAnimation(playerid,"PED","KO_shot_stom",4.1,0,1,0,1,0);
    
}}}
    
/* COLPITO IN TESTA */
    /*if(issuerid != INVALID_PLAYER_ID && bodypart == 9)
    {
        if(weaponid >= 22 && weaponid <= 35)
        {
            SetPlayerHealth(playerid, 0);
        }
        if(staffduty[playerid] == 1)
        {
            SetPlayerHealth(playerid, 999999);
        }
    }*/

    /* BRACCIO DESTRO */
    
if(issuerid != INVALID_PLAYER_ID && bodypart == 6)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    
bdestro[playerid] = 1;
    }}
    
/* BRACCIO SINISTRO */
    
if(issuerid != INVALID_PLAYER_ID && bodypart == 5)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    
bsinistro[playerid] = 1;
    }}
     
/* GAMBA DESTRA */
    
if(issuerid != INVALID_PLAYER_ID && bodypart == 8)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    
gdestra[playerid] = 1;
    }}
     
/* GAMBA SINISTRA */
    
if(issuerid != INVALID_PLAYER_ID && bodypart == 7)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    
gsinistra[playerid] = 1;
    }}
    if(
issuerid != INVALID_PLAYER_ID && bodypart == 4)
    {
    if(
weaponid >= 22 && weaponid <= 35)
    {
    
inguine[playerid] = 1;
    }}
    return 
1;

Reply


Messages In This Thread
Help me pls - by kevi11 - 29.03.2016, 10:27
Re: Help me pls - by xTURBOx - 29.03.2016, 16:31
Re: Help me pls - by kevi11 - 29.03.2016, 19:19
Re: Help me pls - by introzen - 29.03.2016, 19:26
Re: Help me pls - by kevi11 - 29.03.2016, 20:00
Re: Help me pls - by Mencent - 29.03.2016, 20:06
Re: Help me pls - by kevi11 - 29.03.2016, 20:16
Re: Help me pls - by Mencent - 29.03.2016, 20:21
Re: Help me pls - by kevi11 - 29.03.2016, 20:26
Re: Help me pls - by Mencent - 29.03.2016, 20:46

Forum Jump:


Users browsing this thread: 1 Guest(s)