OnPlayerTakeDamage
#1

I Got an error i dont know what's wrong there... please help

Код:
error 025: function heading differs from prototype
Here my code

PHP код:
public OnPlayerTakeDamage(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
#2

update your includes.
Reply
#3

which includes?!
Reply
#4

It's

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
Reply
#5

Quote:
Originally Posted by ISmokezU
Посмотреть сообщение
It's

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
Exactly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)