oscar-broman / samp-weapon-config

A more consistent and responsive damage system with many new features
Apache License 2.0
93 stars 83 forks source link

error 025: function heading differs from prototype #276

Open PazzOnee opened 9 months ago

PazzOnee commented 9 months ago

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;
NexiusTailer commented 2 months ago

No, it does have this tag, here: https://github.com/oscar-broman/samp-weapon-config/blob/4725a3603a41e2af684aea092f3a91447305f0f9/weapon-config.inc#L175