[Ajuda] alguem mim ajuda
#1

C:\Users\kleiton\Downloads\FdN (3).pwn(6774) : error 025: function heading differs from prototype

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) linha 6774 й essa
{
if(issuerid != INVALID_PLAYER_ID)
{
//SNIPER SNP2 ONE SHOT
if(SNP2[playerid] == true && Arena[playerid] == 1 && GetPlayerWeapon(issuerid) == 34) SetPlayerHealth(playerid,0.0);

//Evento Sem Danos
if(NoEvento[playerid] == 1)if(EventoAtivo == 1 && NoEvento[issuerid] == 1 && EventoSemDanos == true) SetPlayerHealth(issuerid,0.0);

//EventoOHK
if(NoEvento[playerid] == 1)if(EventoAtivo == 1 && NoEvento[issuerid] == 1 && EventoOHK == true && GetPlayerWeapon(issuerid) > 1) SetPlayerHealth(playerid,0.0);

DamageTick[playerid] = TickCounter;
}
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Sniper)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////SNIPERRRRRRRRRRRRRRRRR
if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Desert)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////DESERTTTTTTTTTTTTTT
if(issuerid != INVALID_PLAYER_ID && weaponid == 35 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Rifle)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////RIFLEEEEEEEEEEEEEEEEEE


return 1;
}
Reply
#2

Para melhor organizaзгo e entendimento, coloque o erro em [*/CODE] (Sem o *)

Ex: [*CODE]MENSAGEM DESEJADA[*/CODE] (sem o *)

Faзa isso com o erro e o sistema, se for possнvel marque a linha que estб com erro.
Isso ajuda a melhor compreensгo de todos os membros do fуrum SA-MP, desde jб obrigado.
Reply
#3

Quote:
Originally Posted by Mikael22
Посмотреть сообщение
C:\Users\kleiton\Downloads\FdN (3).pwn(6774) : error 025: function heading differs from prototype

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart) linha 6774 й essa
{
if(issuerid != INVALID_PLAYER_ID)
{
//SNIPER SNP2 ONE SHOT
if(SNP2[playerid] == true && Arena[playerid] == 1 && GetPlayerWeapon(issuerid) == 34) SetPlayerHealth(playerid,0.0);

//Evento Sem Danos
if(NoEvento[playerid] == 1)if(EventoAtivo == 1 && NoEvento[issuerid] == 1 && EventoSemDanos == true) SetPlayerHealth(issuerid,0.0);

//EventoOHK
if(NoEvento[playerid] == 1)if(EventoAtivo == 1 && NoEvento[issuerid] == 1 && EventoOHK == true && GetPlayerWeapon(issuerid) > 1) SetPlayerHealth(playerid,0.0);

DamageTick[playerid] = TickCounter;
}
if(issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Sniper)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////SNIPERRRRRRRRRRRRRRRRR
if(issuerid != INVALID_PLAYER_ID && weaponid == 24 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Desert)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////DESERTTTTTTTTTTTTTT
if(issuerid != INVALID_PLAYER_ID && weaponid == 35 && bodypart == 9 && Arena[playerid] == 0 && NoEvento[playerid] == 0)
{
///by [SBN]DEAN[SPN]
new levou[48],deu[48],temporario[128];
GetPlayerName(issuerid, deu,sizeof(deu));
GetPlayerName(playerid, levou,sizeof(levou));
format(temporario,sizeof(temporario),"{FFFFFF}» |HEADSHOT| {FCDE00}%s {FC0000}tomou um Headshot de {FCDE00}%s {FC0000}(Rifle)",levou,deu);
SendMessageMesmoWorld(playerid, COLOUR_ERRO, temporario);
SetPlayerHealth(playerid, 0.0);
}
/////RIFLEEEEEEEEEEEEEEEEEE


return 1;
}
Troque por isso.
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid
Reply
#4

Vc tem que atualizar sua inc do samp, a_samp.

Esse й o download http://files.sa-mp.com/samp037_svr_R2-1-1_win32.zip
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)