(symbol "OnPlayerGiveDamage")
#1

What's wrong here?

... Please Help me...

Код:
public function lacks forward declaration (symbol "OnPlayerGiveDamage")
PHP код:
public OnPlayerGiveDamage(playeriddamagedidFloatamountweaponidbodypart)
{
    if(
Tazer[playerid] == && GetPlayerWeapon(playerid) == TAZE_WEAPON)
    {
        new 
Float:health,losehp;
        
GetPlayerHealth(damagedid,health);
        
losehp TAZE_LOSEHP;
        if(
Tazed[damagedid] == 1) return 1;
        new 
Float:xFloat:yFloat:z;
        
GetPlayerPos(damagedidxyz);
        
ClearAnimations(damagedid);
        
ApplyAnimation(damagedid,"PED","KO_skid_front",4.1,0,1,1,1,0);
        
Spark[damagedid] = CreateObject(TAZE_SPARKxyz-3000);
        
SetTimerEx("DestroySpark"TAZE_DESTROY0"i"damagedid);
        
SetTimerEx("TazedRemove"TAZE_TIMER0"i"damagedid);
        
//TogglePlayerControllable(damagedid, 0);
        
Tazed[damagedid] = 1;
        if(
losehp) {} else SetPlayerHealth(damagedidhealth+amount);
    }
    return 
1;

Reply


Messages In This Thread
(symbol "OnPlayerGiveDamage") - by Man43 - 15.04.2017, 19:31
Re: (symbol "OnPlayerGiveDamage") - by AndreiWow - 15.04.2017, 19:33
Re: (symbol "OnPlayerGiveDamage") - by GoldenLion - 15.04.2017, 19:35
Re: (symbol "OnPlayerGiveDamage") - by Man43 - 15.04.2017, 19:36
Re: (symbol "OnPlayerGiveDamage") - by LEOTorres - 15.04.2017, 19:37

Forum Jump:


Users browsing this thread: 1 Guest(s)