OnPlayerTakeDamage Help
#1

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart//<<< Line 28230
{
    
PlayerPlaySound(issuerid178020.00.00.0);

Код:
D:\SA-MP Servers\TestServer\Gamemodes\TestServer.pwn(28230) : error 025: function heading differs from prototype
The version is 3e.
Reply
#2

The 'bodypart' parameter was added in 0.3z. Leave it out if using an older version.
Reply
#3

can I make One-shot-kill headshots without it?
Reply
#4

No and I don't see why you would suggest using an outdated version.

Just update your includes from the sa-mp.com package.
Reply
#5

No.
Why are you using 0.3e anyway?

EDIT:Arthur beat me.
Reply
#6

Just update your includes version
Reply
#7

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'...
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)