samp-weapon-config
samp-weapon-config copied to clipboard
error 025: function heading differs from prototype
Delete WEAPON tag at these callbacks, hooks because open.mp or samp .inc-s doesn't have that tag
public OnPlayerDeath(playerid, killerid, WEAPON:reason)
CHAIN_FORWARD:WC_OnPlayerDeath(playerid, killerid, WEAPON:reason) = 1;
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, WEAPON:weaponid, bodypart)
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, WEAPON:weaponid, bodypart)
public OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hitid, Float:fX, Float:fY, Float:fZ)
CHAIN_FORWARD:WC_OnPlayerWeaponShot(playerid, WEAPON:weaponid, BULLET_HIT_TYPE:hittype, hitid, Float:fX, Float:fY, Float:fZ) = 1;
No, it does have this tag, here: https://github.com/oscar-broman/samp-weapon-config/blob/4725a3603a41e2af684aea092f3a91447305f0f9/weapon-config.inc#L175