samedi 5 septembre 2015

[AJUDA] Error FS

Guys 'm inconvenience when the FS copilar.

HTML Code:

C:\Documents and Settings\Administrador\Desktop\Serv\pawno\include\streamer.inc(487) : warning 235: public function lacks forward declaration (symbol "OnPlayerWeaponShot")
C:\Documents and Settings\Administrador\Desktop\Serv\pawno\include\streamer.inc(489) : error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER_OBJECT"
Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


FS:
HTML Code:

#include <a_samp>
#include <zcmd>
#include <streamer>
#pragma tabsize 0



#define LEANCMD:(%1) CMD:%1(playerid, params[])


#define SCM SendClientMessage

#define COL_ORANGE "{FF9900}"
#define COLOR_LIGHTRED 0xFF6347AA
#define COL_WHITE "{FFFFFF}"

new objectids[MAX_VEHICLES];
new Text:crosshair[MAX_PLAYERS];
new playerveh[MAX_PLAYERS];

forward THERMALON( playerid, veh );
forward THERMALOFF(playerid);

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Câmera no helicoptero");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}



public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_PASSENGER && newstate == PLAYER_STATE_ONFOOT)
    {
        if(GetPVarInt( playerid, "ThermalActive" ) == 1)
                {
            THERMALOFF( playerid );
                }
    }
    return 1;
}


public THERMALON( playerid, veh )
{
                TextDrawDestroy( crosshair[playerid] );
        crosshair[playerid] = TextDrawCreate( 306.0, 218.0, "+" );
        TextDrawLetterSize( crosshair[playerid], 1.4 ,1.4 );
        TextDrawShowForPlayer( playerid, crosshair[playerid] );
                objectids[veh] = CreateObject( 3785,0,0,0,0,0,0,80 );
                AttachObjectToVehicle( objectids[veh], veh, 0.000000, 2.599999, -0.800000, 0.000000, 0.000000, 0.000000 );
                AttachCameraToObject( playerid, objectids[veh] );
                SetPVarInt( playerid, "ThermalActive", 1 );
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You are now in Thermal mode. To leave thermal mode type /helithermal" );
                SCM( playerid,COLOR_LIGHTRED,"WARNING: "COL_WHITE"You are still able to exit vehicle." );
                playerveh[playerid] = veh;
                return 1;
}



public THERMALOFF(playerid)
{
                TextDrawDestroy( crosshair[playerid] );
                new vehid = playerveh[playerid];
                SCM( playerid,COLOR_LIGHTRED,"NOTICE: "COL_WHITE"You have left thermal mode." );
                DeletePVar( playerid,"ThermalActive" );
                SetCameraBehindPlayer( playerid );
                DestroyObject(objectids[vehid]);
                return 1;
}

//COMMANDS


LEANCMD:(helithermal)
{
        new vehi = GetPlayerVehicleID( playerid );
        if( IsPlayerInAnyVehicle(playerid) )
        {
                if( GetVehicleModel( vehi ) == 497 )
                {
                if( GetPlayerVehicleSeat(playerid) == 1 )
                {

                        if( GetPVarInt( playerid, "ThermalActive" ) == 0 )
                        {
                        THERMALON( playerid, vehi );
                                }
                                else
                                {
                        THERMALOFF( playerid );
                                }
                        }
                        else return SCM(playerid,COLOR_LIGHTRED,"ERRO: "COL_WHITE"Isso é apenas para co-pilotos. ((PASSAGEIRO))" );
                }
                else return SCM(playerid, COLOR_LIGHTRED,"ERRO: "COL_WHITE"Este veículo não é suportado com uma câmera");
        }
        else return SCM(playerid,COLOR_LIGHTRED,"ERRO: "COL_WHITE"Você não está em um helicoptero");
return 1;
}



Aucun commentaire:

Enregistrer un commentaire