Ever since updating to 0.3z
#1

Well, it's probably something I did cause I do things like this.

But when I compile my script, I just get this;
pawn Код:
error 025: function heading differs from prototype
And it leads me to these;
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid, bodypart)
I've updated my a_samp include but when I remove the bodypart param it compiles fine.
Reply
#2

Add the "bodypart" param to your script/includes.


EDIT: Do you use YSI?
Reply
#3

Do you use any other includes that hook this callback?
Reply
#4

Quote:
Originally Posted by Djole1337
Посмотреть сообщение
Add the "bodypart" param to your script/includes.


EDIT: Do you use YSI?
I already did that, and no I don't use YSI.

Quote:
Originally Posted by Vince
Посмотреть сообщение
Do you use any other includes that hook this callback?
I've checked all my includes and they don't use the callback.
Reply
#5

Got any other pawn installed somewhere that may be using wrong includes folder?
Reply
#6

Quote:
Originally Posted by Luis-
Посмотреть сообщение
I already did that, and no I don't use YSI.



I've checked all my includes and they don't use the callback.
Are you sure that you don't use YSI includes NOWHERE? Answer with "I don't have YSI includes in pawno folder." is going to be enough to be sure that it's not YSI problem.
Reply
#7

You might want to open pawno.exe in the directory of a_samp and then load your mode and compile. If that doesn't work commrnent out every include one by one to be sure if its really the includes or not.


Edit: Kylesmith said it.
Reply
#8

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Got any other pawn installed somewhere that may be using wrong includes folder?
No, the only one I have is in my server's folder.

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Are you sure that you don't use YSI includes NOWHERE? Answer with "I don't have YSI includes in pawno folder." is going to be enough to be sure that it's not YSI problem.
After removing the YSI folder from my includes, it turns out I am using it, I had no idea.

Quote:
Originally Posted by Tamer T
Посмотреть сообщение
You might want to open pawno.exe in the directory of a_samp and then load your mode snd compile. If that doesn't work commrnent out every include one by one to be sure if its really the includes or not.
Wouldn't that just cause more errors?
Reply
#9

Quote:
Originally Posted by Luis-
Посмотреть сообщение
No, the only one I have is in my server's folder.



After removing the YSI folder from my includes, it turns out I am using it, I had no idea.



Wouldn't that just cause more errors?
Thats how I encounteredd my error. Make sure the callback is at the beginning of your code and below includes. So actually it lists the errors in order.
Reply
#10

Right, turns out it's the g_bug fix include, it doesn't use those callbacks but it does use YSI. So now i'm even more stumped.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)