public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
new string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
format(string, sizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!", name, name2);
SendClientMessageToAll(0xF8F8F8FFF, string);
SetPlayerHealth(playerid, 0.0);
new string1[128]; new name3[MAX_PLAYER_NAME];
GetPlayerName(issuerid, name3, sizeof(name3));
format(string1, sizeof(string1), "~P~ Got Pawned :[ By %s.", name3);
GameTextForPlayer(playerid, string, 3000, 6);
}
return 1;
}
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
new string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(issuerid, name2, sizeof(name2));
format(string, sizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!", name, name2);
SendClientMessageToAll(0xF8F8F8FFF, string);
SetPlayerHealth(playerid, 0.0);
return 1;
}
C:\Users\Admin\Desktop\HeadShot.pwn(5) : error 025: function heading differs from prototype
format(string, sizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d{FFFFFF}And Wins {F12F12}$2000$!", name, name2);
Line 5>>> public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
{
new string[128],name[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(issuerid, name2, sizeof(name2));
format(string, sizeof(string), "[RBOT]:{FFFFFF} {FF0FF0}%s {FFFFFF}Has Headshotted {F00F00}%d {FFFFFF}And Wins {F12F12}$2000$!", name, name2);
SendClientMessageToAll(0xF8F8F8FFF, string);
SetPlayerHealth(playerid, 0.0);
return 1;
}
C:\Users\Admin\Desktop\HeadShot.pwn(5) : error 025: function heading differs from prototype Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
Code:
PHP код:
Код:
C:\Users\Admin\Desktop\HeadShot.pwn(5) : error 025: function heading differs from prototype Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |