OnPlayerTakeDamage
#1

I got error when i added OnPlayerTakeDamage to my GM

Code
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        
// One shot to the head to kill with sniper rifle
        
SetPlayerHealth(playerid0.0);
    }
    return 
1;

Error
PHP код:
C:\Users\Euronics Latvija\Desktop\LCRP\gamemodes\nlrp.pwn(13322) : error 025: function heading differs from prototype 
Reply


Messages In This Thread
OnPlayerTakeDamage - by FaZeRs - 10.02.2014, 19:43
Re: OnPlayerTakeDamage - by EmilLykke - 10.02.2014, 19:45
Re: OnPlayerTakeDamage - by [EnErGyS]KING - 10.02.2014, 19:47
Re: OnPlayerTakeDamage - by Mattakil - 10.02.2014, 19:47
Re: OnPlayerTakeDamage - by FaZeRs - 10.02.2014, 19:48
Re: OnPlayerTakeDamage - by Mahde - 11.02.2014, 05:57
Re: OnPlayerTakeDamage - by M3HR4N - 11.02.2014, 07:33
Re: OnPlayerTakeDamage - by DaniceMcHarley - 11.02.2014, 07:40

Forum Jump:


Users browsing this thread: 2 Guest(s)