OnPlayerTakeDamage Help - 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 Help (
/showthread.php?tid=654104)
OnPlayerTakeDamage Help -
Filbert - 21.05.2018
PHP код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) //<<< Line 28230
{
PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
}
Код:
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(28230) : error 025: function heading differs from prototype
The version is 3e.
Re: OnPlayerTakeDamage Help -
CyNiC - 21.05.2018
The 'bodypart' parameter was added in 0.3z. Leave it out if using an older version.
Re: OnPlayerTakeDamage Help -
Filbert - 21.05.2018
can I make One-shot-kill headshots without it?
Re: OnPlayerTakeDamage Help -
Kane - 21.05.2018
No and I don't see why you would suggest using an outdated version.
Just update your includes from the sa-mp.com package.
Re: OnPlayerTakeDamage Help -
Verc - 21.05.2018
No.
Why are you using 0.3e anyway?
EDIT:Arthur beat me.
Re: OnPlayerTakeDamage Help -
dwp12345 - 24.05.2018
Just update your includes version
Re: OnPlayerTakeDamage Help -
Sew_Sumi - 24.05.2018
If you don't know why they are running another version, then don't advise them to simply update, or to run another version... Updating random shit on a whim is how you break a setup more, and make more work for the person who's asking for help.
If they're running an older script that is 0.3e based, and they simply update everything they'll end up with a script that does run, won't compile and simply has more issues, and then, they have to roll that change back...
Now picture this, with a little known script that you have, and you have the response of constantly 'update it'...