14.08.2015, 01:07
i just used the headshot script and here it is
i get the error
the error line is
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) { if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9) { SetPlayerHealth(playerid, 0); GameTextForPlayer(issuerid,"~r~Headshot",2000,3) && GameTextForPlayer(playerid,"~r~Headshot",2000,3); PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0) && PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0); } return 1; }
Код:
C:\Users\Waqar\Desktop\z\The Ultimate Freeroam\gamemodes\freeroam.pwn(3907) : error 025: function heading differs from prototype
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)