Problem with OnPlayerTakeDamage
#1

Code:
forward OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart);
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
	if(weaponid == 0 && GetPVarInt(issuerid, "Tazer") == 1)
	{
	    SetPlayerHealth(playerid, GetPlayerHealth(playerid) - 10);
	    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.1, 1, 0, 0, 1, 30000, 1);
		return 1;
	)
}
I have a error with that code: "function differs from prototype".
I tryed:
- Download SA-MP Includes for 0.3z (not solved)
- Download YSI for 0.3z RC5 (not solved)
- Download YSI for 0.3z RC4 (not solved)
- Manually replace all the codes for fix in YSI files (not solved).

I need help please guys
Reply


Messages In This Thread
Problem with OnPlayerTakeDamage - by Syncro - 03.05.2014, 13:44
Re: Problem with OnPlayerTakeDamage - by iZN - 03.05.2014, 14:08
Re: Problem with OnPlayerTakeDamage - by Syncro - 03.05.2014, 14:33
Re: Problem with OnPlayerTakeDamage - by Basssiiie - 03.05.2014, 15:46
Re: Problem with OnPlayerTakeDamage - by Syncro - 03.05.2014, 20:38
Re: Problem with OnPlayerTakeDamage - by brent94 - 03.05.2014, 20:59
Re: Problem with OnPlayerTakeDamage - by Syncro - 04.05.2014, 13:41
Re: Problem with OnPlayerTakeDamage - by [WSF]ThA_Devil - 04.05.2014, 13:57
Re: Problem with OnPlayerTakeDamage - by Galletziz - 04.05.2014, 14:59
Re: Problem with OnPlayerTakeDamage - by Syncro - 04.05.2014, 15:18

Forum Jump:


Users browsing this thread: 3 Guest(s)