SA-MP Forums Archive
Ever since updating to 0.3z - 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: Ever since updating to 0.3z (/showthread.php?tid=489409)



Ever since updating to 0.3z - Luis- - 22.01.2014

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.


Re: Ever since updating to 0.3z - Djole1337 - 22.01.2014

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


EDIT: Do you use YSI?


Re: Ever since updating to 0.3z - Vince - 22.01.2014

Do you use any other includes that hook this callback?


Re: Ever since updating to 0.3z - Luis- - 22.01.2014

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.


Re: Ever since updating to 0.3z - Kyle - 22.01.2014

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


Re: Ever since updating to 0.3z - Riddick94 - 22.01.2014

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.


Re: Ever since updating to 0.3z - Tamer - 22.01.2014

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.


Re: Ever since updating to 0.3z - Luis- - 22.01.2014

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?


Re: Ever since updating to 0.3z - Tamer - 22.01.2014

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.


Re: Ever since updating to 0.3z - Luis- - 22.01.2014

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.