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



error 025: function heading differs from prototype - Supermaxultraswag - 01.03.2015

Код HTML:
error 025: function heading differs from prototype//115 line

public OnPlayerGiveDamage(playerid, damagedid, Float: amount, weaponid, bodypart)//115 line
{

    return 1;
}



Re: error 025: function heading differs from prototype - iMFear - 01.03.2015

Do you have 1 or more callbacks 'OnPlayerGiveDamage' in your script


i think.


Re: error 025: function heading differs from prototype - Evocator - 01.03.2015

Check your includes, one of them has OnPlayerGiveDamage which has wrongs params of the function. Just replace it.


Re: error 025: function heading differs from prototype - Supermaxultraswag - 01.03.2015

Fixed. I just had to renew Ysi.