13.03.2013, 21:52
(
Последний раз редактировалось jakejohnsonusa; 13.03.2013 в 21:53.
Причина: NOTE THE TIMER IS NOT THE PROBLEM (I've removed that to test it).
)
I keep getting "error 025: function heading differs from prototype" on the following and I can't figure out what's wrong!
This is my code:
I get it on this line:
Anyone know? I have been trying to figure this out for a while, so maybe someone here can help. Yes a_samp is defined.
Thanks: jakejohnsonusa
This is my code:
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && PlayerInfo[playerid][pAdminDuty] != 1)
{
SetPlayerHealth(playerid, 0.0) // One shot to kill with sniper rifle
}
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 20.0)
{
DeathOnTimer[playerid] = SetTimerEx("DeathTimer",22000,true, "i", playerid);
}
}
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid)
Thanks: jakejohnsonusa