FCNPC PROBLEM -
Pearson - 15.05.2016
CODE:
public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, playerid)
{
new Float

icocxle = FCNPC_GetHealth(npcid);
if(weaponid == 34)
{
FCNPC_SetHealth(npcid, sicocxle-40);
FCNPC_AimAtPlayer(npcid, damagerid, bool

hoot = false, shoot_delay = 0, bool

etangle = true);
}
if(weaponid == 24)
{
FCNPC_SetHealth(npcid, sicocxle-45);
FCNPC_AimAtPlayer(npcid, damagerid, bool

hoot = false, shoot_delay = 0, bool

etangle = true);
}
if(weaponid == 4)
{
FCNPC_SetHealth(npcid, sicocxle-15);
FCNPC_AimAtPlayer(npcid, damagerid, bool

hoot = false, shoot_delay = 0, bool

etangle = true);
}
return 1;
}
ERROR:
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18893) : error 025: function heading differs from prototype
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : error 017: undefined symbol "shoot"
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : warning 215: expression has no effect
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : error 017: undefined symbol "shoot_delay"
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : warning 215: expression has no effect
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : error 017: undefined symbol "setangle"
D:\1-ADMIN-ar cashaloo\Desktop\GSRPS GM nEW\gamemodes\gsrpv1.pwn(18899) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664.samp Copyright © 1997-2006, ITB CompuPhase
5 Errors.