OnPlayerGiveDamage : error 025: function heading differs from prototype
#1

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>
/*-------------------------------------------------------------*/
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=488198
Reply
#3

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
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)