SA-MP Forums Archive
function heading differs from prototype error need help. - 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: function heading differs from prototype error need help. (/showthread.php?tid=544310)



function heading differs from prototype error need help. - Ryz - 01.11.2014

After defined

pawn Код:
#include <YSI\y_ini>
I am getting this error

pawn Код:
C:\Users\Ryz\Desktop\Call of Duty\gamemodes\codwwh.pwn(6082) : error 025: function heading differs from prototype

error line
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)



Re: function heading differs from prototype error need help. - M4D - 01.11.2014

Go to YSI > y_als > Open impl.inc

search:
pawn Код:
#define ALS_DO_PlayerGiveDamage<%0> %0<PlayerGiveDamage,iifi>(more:playerid,more:damagedid,Float:amount,end:weaponid)
And replace it to:
pawn Код:
#define ALS_DO_PlayerGiveDamage<%0> %0<PlayerGiveDamage,iifii>(more:playerid,more:damagedid,Float:amount,more:weaponid,end:bodypart)



Re: function heading differs from prototype error need help. - Ryz - 01.11.2014

Thanks


Re: function heading differs from prototype error need help. - xMx4LiFe - 01.11.2014

ryz help me too!! in making those textdraws


Re: function heading differs from prototype error need help. - Ryz - 01.11.2014

Quote:
Originally Posted by xMx4LiFe
Посмотреть сообщение
ryz help me too!! in making those textdraws
i am on it! next time please use pm


Re: function heading differs from prototype error need help. - xMx4LiFe - 01.11.2014

ok bro ty for helping