SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 15/06/2018, 03:42 AM   #1
dittmannlucas
Little Clucker
 
Join Date: Jul 2017
Location: Curitiba-PR, Brasil
Posts: 21
Reputation: 0
Default erro 025 no Sistema de HeadShot

ERRO
PHP Code:
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 Code:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
SCRIPT COMPLETO
PHP Code:
#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;

dittmannlucas is offline   Reply With Quote
Old 15/06/2018, 11:31 AM   #2
DelK
Huge Clucker
 
DelK's Avatar
 
Join Date: Apr 2017
Location: Brazil
Posts: 338
Reputation: 30
Default Re: erro 025 no Sistema de HeadShot

Atualize sua include a_samp.
__________________
  • Perfect City - RPG
DelK is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] Sistema de HeadShot? DeusGrego Português/Portuguese 2 12/04/2018 12:05 AM
[Projeto] Sistema de HeadShot Smoking_Script Português/Portuguese 20 03/06/2014 10:27 PM
[Pedido] Sistema HeadShot Vinicius_TroLL Português/Portuguese 16 17/10/2012 08:23 PM
[Ajuda] sistema Headshot [toːkʲoː]_Shinjuku_.] Português/Portuguese 0 07/09/2012 02:14 PM


All times are GMT. The time now is 01:43 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.