SA-MP Forums Archive
OnPlayerTakeDamage - 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: OnPlayerTakeDamage (/showthread.php?tid=630689)



OnPlayerTakeDamage - Johangelo1 - 17.03.2017

I have this error error 025: function heading differs from prototype in OnPlayerTakeDamage
And update the include a_samp to version 0.3.7 R2 And the error still persists. Can someone tell me what's going on? Thank you

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)



Re: OnPlayerTakeDamage - Mencent - 17.03.2017

Hello!

How do you open your gamemode? Try this:
pawno folder -> pawno -> Open -> your gamemode.pwn

Then try to compile your script.


Re: OnPlayerTakeDamage - Flamehaze7 - 17.03.2017

Quote:
Originally Posted by Johangelo1
Посмотреть сообщение
I have this error error 025: function heading differs from prototype in OnPlayerTakeDamage
And update the include a_samp to version 0.3.7 R2 And the error still persists. Can someone tell me what's going on? Thank you

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid, bodypart)
Update your entire pawno folder with includes


Respuesta: Re: OnPlayerTakeDamage - Johangelo1 - 17.03.2017

Quote:
Originally Posted by Flamehaze7
Посмотреть сообщение
Update your entire pawno folder with includes
Still the same error


Re: OnPlayerTakeDamage - Bolex_ - 17.03.2017

I prefer you to check this out https://sampforum.blast.hk/showthread.php?tid=488198 or update all samp includes


Re: OnPlayerTakeDamage - Variable™ - 17.03.2017

Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
This is how it should be like.

If it shows the same error, download the SA-MP Server Package and try again, should work.


Re: OnPlayerTakeDamage - GoldenLion - 17.03.2017

Quote:
Originally Posted by Variable™
Посмотреть сообщение
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
This is how it should be like.

If it shows the same error, download the SA-MP Server Package and try again, should work.
Adding a space won't change anything. It could even be
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:    amount, weaponid, bodypart)



Respuesta: OnPlayerTakeDamage - Johangelo1 - 17.03.2017

And replace everything with the new version of samp and still the error persists


Re: OnPlayerTakeDamage - Variable™ - 17.03.2017

Quote:
Originally Posted by GoldenLion
Посмотреть сообщение
Adding a space won't change anything. It could even be
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float:    amount, weaponid, bodypart)
I didn't say anything regarding the space, neither my point was the space. Obviously I know that. I just stated how it looks like.


Respuesta: OnPlayerTakeDamage - Johangelo1 - 17.03.2017

Solved
SOLUTION [Include] YSI 3.1 - 0.3z
http://www.solidfiles.com/v/axYekXgDn8V3g/dl