SA-MP Forums Archive
FCNPC PROBLEM - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FCNPC PROBLEM (/showthread.php?tid=607192)



FCNPC PROBLEM - Pearson - 15.05.2016

CODE:
public FCNPC_OnTakeDamage(npcid, damagerid, weaponid, bodypart, playerid)
{
new Floaticocxle = FCNPC_GetHealth(npcid);
if(weaponid == 34)
{
FCNPC_SetHealth(npcid, sicocxle-40);
FCNPC_AimAtPlayer(npcid, damagerid, boolhoot = false, shoot_delay = 0, booletangle = true);
}
if(weaponid == 24)
{
FCNPC_SetHealth(npcid, sicocxle-45);
FCNPC_AimAtPlayer(npcid, damagerid, boolhoot = false, shoot_delay = 0, booletangle = true);
}
if(weaponid == 4)
{
FCNPC_SetHealth(npcid, sicocxle-15);
FCNPC_AimAtPlayer(npcid, damagerid, boolhoot = false, shoot_delay = 0, booletangle = 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.