samp-weapon-config icon indicating copy to clipboard operation
samp-weapon-config copied to clipboard

error 025: function heading differs from prototype

Open PazzOnee opened this issue 1 year ago • 1 comments

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;

PazzOnee avatar Oct 19 '23 20:10 PazzOnee

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

NexiusTailer avatar May 01 '24 08:05 NexiusTailer