OnPlayerGiveDamage : 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: OnPlayerGiveDamage : error 025: function heading differs from prototype (
/showthread.php?tid=662413)
OnPlayerGiveDamage : error 025: function heading differs from prototype -
NexyAG - 31.12.2018
I got this error ( I alredy got this error before ) :
Код HTML:
error 025: function heading differs from prototype
Код HTML:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
{
return 1;
}
Problem is i alredy have YSI 4.0.2 and all latest includes and plugins, here is my #include :
Код:
/*-------------------------------------------------------------*/
#include <a_samp>
#include <FCNPC>
#include "CoD-Mape.pwn"
#undef MAX_PLAYERS
#define MAX_PLAYERS 250
/*-------------------------------------------------------------*/
#include <sscanf2>
#include <streamer>
#include <Pawn.CMD>
#include <YSI\y_va>
#include <YSI\y_ini>
#include <Pawn.RegEx>
#include <YSI\y_iterate>
#include <mapandreas>
/*-------------------------------------------------------------*/
Re: OnPlayerGiveDamage : error 025: function heading differs from prototype -
Hawsn - 31.12.2018
https://sampforum.blast.hk/showthread.php?tid=488198
Re: OnPlayerGiveDamage : error 025: function heading differs from prototype -
NexyAG - 31.12.2018
As i alredy said, I'M USING YSI 4.0.2 which alredy got stuff from that link, don't be dumb and hunt for reps
Re: OnPlayerGiveDamage : error 025: function heading differs from prototype -
NexyAG - 31.12.2018
Quote:
Originally Posted by [HLF]Southclaw
The easiest way to debug things like this is to simply do a build with the -l flag. This flag runs only the pre-compile stage which resolves all preprocessor directives such as #include and #define. This will produce a single text file with all the Pawn source code where you can do a search for the function. Once you've found the offending function, you'll have a better idea of why it has the incorrect prototype.
Possible causes:
- Typo (most likely)
- Outdated standard library
- Outdated YSI (which you ruled out, but the pre-process test will validate this)
|
Actually it was ** OUTDATED ** a_samp.inc WHICH i was REPLACING 3 TIMES IN A ROW WITH THE SAME ARCHIVE...
I don't know, but it was like i update and it goes back on old ( standard lib ), weird...
I fixed this