[Ajuda] erro 025 no Sistema de HeadShot
#1

ERRO
PHP код:
C:\Users\LUCAS\Desktop\[GM]ManiaticZone Freeroam (emus) (TESTES)\[GM]ManiaticZone Freeroam\filterscripts\HeadShot.pwn(38) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

LINHA
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
SCRIPT COMPLETO
PHP код:
#include <a_samp>
#include <zcmd>
new bool:HeadShoot;
public 
OnFilterScriptInit()
{
    
HeadShoot true;
    return 
1;
}
CMD:HeadShoot(playerid)
{
    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid0xFF0000FF"Debes ser un administrador para usar este comando.");
    if(
HeadShoot == false){HeadShoot true;}
    else{
HeadShoot false;}
    new 
str_t[83];
    
format(str_tsizeof(str_t), "El administrador %s ha %s el sistema de Head Shot",Nombre(playerid), HeadShoot == false ? ("desactivado") : ("activado"));
    
SendClientMessageToAll(HeadShoot == false ? (0xFF0000FF) : (0x00FF00FF), str_t);
    return 
1;
}
public 
OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart)
{
    if(
issuerid != INVALID_PLAYER_ID && weaponid == 34 && bodypart == 9)
    {
        if(
HeadShoot == true)
        {
            new 
str_hs[95];
            
format(str_hssizeof(str_hs), "[HeadShoot] {FFFFFF}%s te ha disparado en la cabeza usando una Sniper."Nombre(issuerid));
            
SendClientMessage(playerid0x33CCFFAAstr_hs);
            
GameTextForPlayer(playerid"~r~HeadShoot!"30003);
            
SetPlayerAttachedObject(playerid11866815, -0.052946, -0.2098050.3029060.0000000.0000000.0000001.4389301.0000001.000000 );
            
SetPlayerHealth(playerid0.0);
            
str_hs "\0";
            
format(str_hssizeof(str_hs), "[HeadShoot] {FFFFFF}Le disparaste a %s en la cabeza usando una Sniper."Nombre(playerid));
            
SendClientMessage(issuerid0x33CCFFAAstr_hs);
            
GameTextForPlayer(issuerid"~r~HeadShoot!"30003);
         }
    }
    return 
1;
}
stock Nombre(playerid)
{
    new 
jNombre[24];
    
GetPlayerName(playeridjNombre24);
    return 
jNombre;

Reply
#2

Atualize sua include a_samp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)