SA-MP Forums Archive
weapon config include - 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: weapon config include (/showthread.php?tid=663964)



weapon config include - Dawkin - 16.02.2019

I try to install weapon config include and got this error

Code:
pawno\include\weapon-config.inc(2975) : error 025: function heading differs from prototype
pawno\include\weapon-config.inc(3222) : error 025: function heading differs from prototype
pawno\include\weapon-config.inc(3732) : warning 202: number of arguments does not match definition
pawno\include\weapon-config.inc(5320) : warning 219: local variable "hour" shadows a variable at a preceding level
pawno\include\weapon-config.inc(5320) : warning 219: local variable "second" shadows a variable at a preceding level
pawno\include\weapon-config.inc(5448) : warning 213: tag mismatch
pawno\include\weapon-config.inc(5448) : warning 213: tag mismatch
pawno\include\weapon-config.inc(5448) : warning 202: number of arguments does not match definition
pawno\include\weapon-config.inc(5540) : error 025: function heading differs from prototype
pawno\include\weapon-config.inc(5715) : error 025: function heading differs from prototype
pawno\include\weapon-config.inc(6331) : error 027: invalid character constant
Include: https://github.com/oscar-broman/samp-weapon-config

Help me


Re: weapon config include - Dawkin - 16.02.2019

Quote:
Originally Posted by [HLF]Southclaw
View Post
Look at the actual lines of code the errors point to. The first one is:

OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)

This looks fine, matches the wiki: https://sampwiki.blast.hk/wiki/OnPlayerGiveDamage

This means your standard library is (years) out of date.
What should I do? Update my pawno, include?


Re: weapon config include - Dawkin - 16.02.2019

I try update pawno and include to 0.3.7 but it not work, still error


Re: weapon config include - raydx - 16.02.2019

Are you using YSI? Can be related to onplayergivedamage differences.