[Ajuda] Pawno Error 017 undefined symbol
#1

Код HTML:
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4181) : error 017: undefined symbol "Streamer_VisibleItems"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4182) : error 017: undefined symbol "Streamer_TickRate"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4206) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4711) : error 017: undefined symbol "CreateDynamicCP"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4712) : error 017: undefined symbol "CreateDynamicCP"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4713) : error 017: undefined symbol "CreateDynamicCP"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(4714) : error 017: undefined symbol "CreateDynamicCP"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5371) : error 017: undefined symbol "CreateDynamicPickup"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5382) : error 017: undefined symbol "CreateDynamicPickup"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5430) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5431) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5432) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5433) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5434) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5435) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5436) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5437) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5438) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5439) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5440) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5441) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5442) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5443) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5444) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5445) : error 017: undefined symbol "CreateDynamicObject"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(5446) : error 017: undefined symbol "CreateDynamicObject"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Eu peguei um GM antigo estava instalado a 0.3d nele eu atualizei.
Depois abri o Pawno (mais eu nгo tirei as includes que tinha antes), e abri o GM. Logo cliquei em Copile pra ver se havia algum erro por que quando eu abria o servidor aparecia um erro na tela preta. E se eu loga-se no servidor nгo carregava nem a caixinha de login.
Entгo alguem pode me ajudar por favor
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=102865

Baixe isto e coloque na pasta do seu GameMode.
Reply
#3

Sу complementando. Coloque o streamer.inc no diretуrio pawno/includes e o plugin streamer.dll no diretуrio plugins P.S.: Caso nгo tenha, crie a pasta.

Abra o server.cfg e coloque ao lado da linha plugins o nome streamer, vai ficar assim:
Код:
plugins streamer
P.S.: Caso nгo tenha a linha, crie-a.

No topo do seu GM coloque
pawn Код:
#include <streamer>
Espero ter sido ъtil.
Reply
#4

Quote:
Originally Posted by Ouro
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=102865

Baixe isto e coloque na pasta do seu GameMode.
Esses 1 milhгo de cуdigo que ele passa ali tambйm tenho que colocar dentro do meu GM ?
O negуcio que eu fiz downlaod desse mesmo post que vocк me enviou eu coloquei dentro da pasta e substitui.
Reply
#5

Quote:
Originally Posted by Rodney_Francalim
Посмотреть сообщение
Sу complementando. Coloque o streamer.inc no diretуrio pawno/includes e o plugin streamer.dll no diretуrio plugins P.S.: Caso nгo tenha, crie a pasta.

Abra o server.cfg e coloque ao lado da linha plugins o nome streamer, vai ficar assim:
Код:
plugins streamer
P.S.: Caso nгo tenha a linha, crie-a.

No topo do seu GM coloque
pawn Код:
#include <streamer>
Espero ter sido ъtil.
Nгo adiantou nada continua as mesmas coisas.
Reply
#6

Include streamer.inc Atualizada.
Com todas as funзхes que ta dando error no seu gm, ta incluso na include.
pawn Код:
/*
    SA-MP Streamer Plugin v2.5.2
    Copyright © 2010 Incognito

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#if defined _streamer_included
    #endinput
#endif
#define _streamer_included

#include <a_samp>

// Definitions

#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)

// Enumerator

enum
{
    E_STREAMER_ATTACHED_PLAYER,
    E_STREAMER_ATTACHED_VEHICLE,
    E_STREAMER_COLOR,
    E_STREAMER_DISTANCE,
    E_STREAMER_DRAW_DISTANCE,
    E_STREAMER_EXTRA_ID,
    E_STREAMER_INTERIOR_ID,
    E_STREAMER_MAX_X,
    E_STREAMER_MAX_Y,
    E_STREAMER_MAX_Z,
    E_STREAMER_MIN_X,
    E_STREAMER_MIN_Y,
    E_STREAMER_MIN_Z,
    E_STREAMER_MODEL_ID,
    E_STREAMER_MOVE_SPEED,
    E_STREAMER_MOVE_X,
    E_STREAMER_MOVE_Y,
    E_STREAMER_MOVE_Z,
    E_STREAMER_NEXT_X,
    E_STREAMER_NEXT_Y,
    E_STREAMER_NEXT_Z,
    E_STREAMER_PLAYER_ID,
    E_STREAMER_R_X,
    E_STREAMER_R_Y,
    E_STREAMER_R_Z,
    E_STREAMER_SIZE,
    E_STREAMER_STYLE,
    E_STREAMER_TEST_LOS,
    E_STREAMER_TYPE,
    E_STREAMER_WORLD_ID,
    E_STREAMER_X,
    E_STREAMER_Y,
    E_STREAMER_Z
}

// Natives (Settings)

native Streamer_TickRate(rate);
native Streamer_MaxItems(type, items);
native Streamer_VisibleItems(type, items);
native Streamer_CellDistance(Float:distance);
native Streamer_CellSize(Float:size);

// Natives (Updates)

native Streamer_Update(playerid);
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z);

// Natives (Data Manipulation)

native Streamer_GetFloatData(type, {Text3D,_}:id, data, &Float:result);
native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value);
native Streamer_GetIntData(type, {Text3D,_}:id, data);
native Streamer_SetIntData(type, {Text3D,_}:id, data, value);
native Streamer_IsInArrayData(type, {Text3D,_}:id, data, value);
native Streamer_AppendArrayData(type, {Text3D,_}:id, data, value);
native Streamer_RemoveArrayData(type, {Text3D,_}:id, data, value);
native Streamer_GetUpperBound(type);

// Natives (Miscellaneous)

native Streamer_IsItemVisible(playerid, type, {Text3D,_}:id);
native Streamer_DestroyAllVisibleItems(playerid, type);
native Streamer_CountVisibleItems(playerid, type);

// Natives (Objects)

native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 1000.0);
native DestroyDynamicObject(objectid);
native IsValidDynamicObject(objectid);
native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
native StopDynamicObject(objectid);
native DestroyAllDynamicObjects();
native CountDynamicObjects();

// Natives (Pickups)

native CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicPickup(pickupid);
native IsValidDynamicPickup(pickupid);
native DestroyAllDynamicPickups();
native CountDynamicPickups();

// Natives (Checkpoints)

native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicCP(checkpointid);
native IsValidDynamicCP(checkpointid);
native TogglePlayerDynamicCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicCPs(playerid, toggle);
native IsPlayerInDynamicCP(playerid, checkpointid);
native DestroyAllDynamicCPs();
native CountDynamicCPs();

// Natives (Race Checkpoints)

native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicRaceCP(checkpointid);
native IsValidDynamicRaceCP(checkpointid);
native TogglePlayerDynamicRaceCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicRaceCPs(playerid, toggle);
native IsPlayerInDynamicRaceCP(playerid, checkpointid);
native DestroyAllDynamicRaceCPs();
native CountDynamicRaceCPs();

// Natives (Map Icons)

native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicMapIcon(iconid);
native IsValidDynamicMapIcon(iconid);
native DestroyAllDynamicMapIcons();
native CountDynamicMapIcons();

// Natives (3D Text Labels)

native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamic3DTextLabel(Text3D:id);
native IsValidDynamic3DTextLabel(Text3D:id);
native UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]);
native DestroyAllDynamic3DTextLabels();
native CountDynamic3DTextLabels();

// Natives (Areas)

native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();

// Natives (Internals)

native Streamer_AddPlayer(playerid);
native Streamer_RemovePlayer(playerid);
native Streamer_VerifyPickup(playerid, pickupid);
native Streamer_VerifyCheckpoint(playerid, type, status);
native Streamer_RegisterInterface();

// Callbacks

forward OnDynamicObjectMoved(objectid);
forward OnPlayerPickUpDynamicPickup(playerid, pickupid);
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicCP(playerid, checkpointid);
forward OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicRaceCP(playerid, checkpointid);
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);

// Callback Hook Section

static bool:Streamer_g_OPC = false;
static bool:Streamer_g_OPDC = false;
static bool:Streamer_g_OPPP = false;
static bool:Streamer_g_OPEC = false;
static bool:Streamer_g_OPLC = false;
static bool:Streamer_g_OPERC = false;
static bool:Streamer_g_OPLRC = false;
static bool:Streamer_g_RI = false;

public OnFilterScriptInit()
{
    if (!Streamer_g_RI)
    {
        Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1;
        Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1;
        Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1;
        Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1;
        Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1;
        Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1;
        Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1;
        Streamer_g_RI = true;
        Streamer_RegisterInterface();
    }
    if (funcidx("Streamer_OnFilterScriptInit") != -1)
    {
        return CallLocalFunction("Streamer_OnFilterScriptInit", "");
    }
    return 1;
}

#if defined _ALS_OnFilterScriptInit
    #undef OnFilterScriptInit
#else
    #define _ALS_OnFilterScriptInit
#endif
#define OnFilterScriptInit Streamer_OnFilterScriptInit

forward Streamer_OnFilterScriptInit();

public OnGameModeInit()
{
    if (!Streamer_g_RI)
    {
        Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1;
        Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1;
        Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1;
        Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1;
        Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1;
        Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1;
        Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1;
        Streamer_g_RI = true;
        Streamer_RegisterInterface();
    }
    if (funcidx("Streamer_OnGameModeInit") != -1)
    {
        return CallLocalFunction("Streamer_OnGameModeInit", "");
    }
    return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Streamer_OnGameModeInit

forward Streamer_OnGameModeInit();

public OnPlayerConnect(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_AddPlayer(playerid);
    }
    if (Streamer_g_OPC)
    {
        return CallLocalFunction("Streamer_OnPlayerConnect", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Streamer_OnPlayerConnect

forward Streamer_OnPlayerConnect(playerid);

public OnPlayerDisconnect(playerid, reason)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_RemovePlayer(playerid);
    }
    if (Streamer_g_OPDC)
    {
        return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason);
    }
    return 1;
}

#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect

forward Streamer_OnPlayerDisconnect(playerid, reason);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyPickup(playerid, pickupid);
    }
    if (Streamer_g_OPPP)
    {
        return CallLocalFunction("Streamer_OnPlayerPickUpPickup", "dd", playerid, pickupid);
    }
    return 1;
}

#if defined _ALS_OnPlayerPickUpPickup
    #undef OnPlayerPickUpPickup
#else
    #define _ALS_OnPlayerPickUpPickup
#endif
#define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup

forward Streamer_OnPlayerPickUpPickup(playerid, pickupid);

public OnPlayerEnterCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 0);
    }
    if (Streamer_g_OPEC)
    {
        return CallLocalFunction("Streamer_OnPlayerEnterCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerEnterCheckpoint
    #undef OnPlayerEnterCheckpoint
#else
    #define _ALS_OnPlayerEnterCheckpoint
#endif
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP

forward Streamer_OnPlayerEnterCP(playerid);

public OnPlayerLeaveCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1);
    }
    if (Streamer_g_OPLC)
    {
        return CallLocalFunction("Streamer_OnPlayerLeaveCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerLeaveCheckpoint
    #undef OnPlayerLeaveCheckpoint
#else
    #define _ALS_OnPlayerLeaveCheckpoint
#endif
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP

forward Streamer_OnPlayerLeaveCP(playerid);

public OnPlayerEnterRaceCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 0);
    }
    if (Streamer_g_OPERC)
    {
        return CallLocalFunction("Streamer_OnPlayerEnterRaceCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerEnterRaceCP
    #undef OnPlayerEnterRaceCheckpoint
#else
    #define _ALS_OnPlayerEnterRaceCP
#endif
#define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP

forward Streamer_OnPlayerEnterRaceCP(playerid);

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 1);
    }
    if (Streamer_g_OPLRC)
    {
        return CallLocalFunction("Streamer_OnPlayerLeaveRaceCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerLeaveRaceCP
    #undef OnPlayerLeaveRaceCheckpoint
#else
    #define _ALS_OnPlayerLeaveRaceCP
#endif
#define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP

forward Streamer_OnPlayerLeaveRaceCP(playerid);

// PAWN Invoke Section

forward Streamer_PublicFunction();

public Streamer_PublicFunction()
{
    new Float:value;
    CreatePickup(0, 0, 0.0, 0.0, 0.0, 0);
    CreatePlayer3DTextLabel(0, "", 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0);
    CreatePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    DeletePlayer3DTextLabel(0, PlayerText3D:0);
    DestroyPickup(0);
    DestroyPlayerObject(0, 0);
    DisablePlayerCheckpoint(0);
    DisablePlayerRaceCheckpoint(0);
    GetPlayerInterior(0);
    GetPlayerPos(0, value, value, value);
    GetPlayerState(0);
    GetPlayerVirtualWorld(0);
    GetVehiclePos(0, value, value, value);
    MovePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0);
    RemovePlayerMapIcon(0, 0);
    SetPlayerCheckpoint(0, 0.0, 0.0, 0.0, 0.0);
    SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0);
    SetPlayerObjectPos(0, 0, 0.0, 0.0, 0.0);
    SetPlayerObjectRot(0, 0, 0.0, 0.0, 0.0);
    SetPlayerRaceCheckpoint(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    StopPlayerObject(0, 0);
    UpdatePlayer3DTextLabelText(0, PlayerText3D:0, 0, "");
    return 1;
}
Defina no seu gamemode..
Reply
#7

Quote:
Originally Posted by Nill.Oliveira
Посмотреть сообщение
Include streamer.inc Atualizada.
Com todas as funзхes que ta dando error no seu gm, ta incluso na include.
pawn Код:
/*
    SA-MP Streamer Plugin v2.5.2
    Copyright © 2010 Incognito

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/


#if defined _streamer_included
    #endinput
#endif
#define _streamer_included

#include <a_samp>

// Definitions

#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)

// Enumerator

enum
{
    E_STREAMER_ATTACHED_PLAYER,
    E_STREAMER_ATTACHED_VEHICLE,
    E_STREAMER_COLOR,
    E_STREAMER_DISTANCE,
    E_STREAMER_DRAW_DISTANCE,
    E_STREAMER_EXTRA_ID,
    E_STREAMER_INTERIOR_ID,
    E_STREAMER_MAX_X,
    E_STREAMER_MAX_Y,
    E_STREAMER_MAX_Z,
    E_STREAMER_MIN_X,
    E_STREAMER_MIN_Y,
    E_STREAMER_MIN_Z,
    E_STREAMER_MODEL_ID,
    E_STREAMER_MOVE_SPEED,
    E_STREAMER_MOVE_X,
    E_STREAMER_MOVE_Y,
    E_STREAMER_MOVE_Z,
    E_STREAMER_NEXT_X,
    E_STREAMER_NEXT_Y,
    E_STREAMER_NEXT_Z,
    E_STREAMER_PLAYER_ID,
    E_STREAMER_R_X,
    E_STREAMER_R_Y,
    E_STREAMER_R_Z,
    E_STREAMER_SIZE,
    E_STREAMER_STYLE,
    E_STREAMER_TEST_LOS,
    E_STREAMER_TYPE,
    E_STREAMER_WORLD_ID,
    E_STREAMER_X,
    E_STREAMER_Y,
    E_STREAMER_Z
}

// Natives (Settings)

native Streamer_TickRate(rate);
native Streamer_MaxItems(type, items);
native Streamer_VisibleItems(type, items);
native Streamer_CellDistance(Float:distance);
native Streamer_CellSize(Float:size);

// Natives (Updates)

native Streamer_Update(playerid);
native Streamer_UpdateEx(playerid, Float:x, Float:y, Float:z);

// Natives (Data Manipulation)

native Streamer_GetFloatData(type, {Text3D,_}:id, data, &Float:result);
native Streamer_SetFloatData(type, {Text3D,_}:id, data, Float:value);
native Streamer_GetIntData(type, {Text3D,_}:id, data);
native Streamer_SetIntData(type, {Text3D,_}:id, data, value);
native Streamer_IsInArrayData(type, {Text3D,_}:id, data, value);
native Streamer_AppendArrayData(type, {Text3D,_}:id, data, value);
native Streamer_RemoveArrayData(type, {Text3D,_}:id, data, value);
native Streamer_GetUpperBound(type);

// Natives (Miscellaneous)

native Streamer_IsItemVisible(playerid, type, {Text3D,_}:id);
native Streamer_DestroyAllVisibleItems(playerid, type);
native Streamer_CountVisibleItems(playerid, type);

// Natives (Objects)

native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 1000.0);
native DestroyDynamicObject(objectid);
native IsValidDynamicObject(objectid);
native SetDynamicObjectPos(objectid, Float:x, Float:y, Float:z);
native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native SetDynamicObjectRot(objectid, Float:rx, Float:ry, Float:rz);
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed);
native StopDynamicObject(objectid);
native DestroyAllDynamicObjects();
native CountDynamicObjects();

// Natives (Pickups)

native CreateDynamicPickup(modelid, type, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicPickup(pickupid);
native IsValidDynamicPickup(pickupid);
native DestroyAllDynamicPickups();
native CountDynamicPickups();

// Natives (Checkpoints)

native CreateDynamicCP(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicCP(checkpointid);
native IsValidDynamicCP(checkpointid);
native TogglePlayerDynamicCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicCPs(playerid, toggle);
native IsPlayerInDynamicCP(playerid, checkpointid);
native DestroyAllDynamicCPs();
native CountDynamicCPs();

// Natives (Race Checkpoints)

native CreateDynamicRaceCP(type, Float:x, Float:y, Float:z, Float:nextx, Float:nexty, Float:nextz, Float:size, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicRaceCP(checkpointid);
native IsValidDynamicRaceCP(checkpointid);
native TogglePlayerDynamicRaceCP(playerid, checkpointid, toggle);
native TogglePlayerAllDynamicRaceCPs(playerid, toggle);
native IsPlayerInDynamicRaceCP(playerid, checkpointid);
native DestroyAllDynamicRaceCPs();
native CountDynamicRaceCPs();

// Natives (Map Icons)

native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicMapIcon(iconid);
native IsValidDynamicMapIcon(iconid);
native DestroyAllDynamicMapIcons();
native CountDynamicMapIcons();

// Natives (3D Text Labels)

native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamic3DTextLabel(Text3D:id);
native IsValidDynamic3DTextLabel(Text3D:id);
native UpdateDynamic3DTextLabelText(Text3D:id, color, const text[]);
native DestroyAllDynamic3DTextLabels();
native CountDynamic3DTextLabels();

// Natives (Areas)

native CreateDynamicCircle(Float:x, Float:y, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicRectangle(Float:minx, Float:miny, Float:maxx, Float:maxy, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
native CreateDynamicCube(Float:minx, Float:miny, Float:minz, Float:maxx, Float:maxy, Float:maxz, worldid = -1, interiorid = -1, playerid = -1);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native TogglePlayerDynamicArea(playerid, areaid, toggle);
native TogglePlayerAllDynamicAreas(playerid, toggle);
native IsPlayerInDynamicArea(playerid, areaid);
native AttachDynamicAreaToPlayer(areaid, playerid);
native AttachDynamicAreaToVehicle(areaid, vehicleid);
native DestroyAllDynamicAreas();
native CountDynamicAreas();

// Natives (Internals)

native Streamer_AddPlayer(playerid);
native Streamer_RemovePlayer(playerid);
native Streamer_VerifyPickup(playerid, pickupid);
native Streamer_VerifyCheckpoint(playerid, type, status);
native Streamer_RegisterInterface();

// Callbacks

forward OnDynamicObjectMoved(objectid);
forward OnPlayerPickUpDynamicPickup(playerid, pickupid);
forward OnPlayerEnterDynamicCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicCP(playerid, checkpointid);
forward OnPlayerEnterDynamicRaceCP(playerid, checkpointid);
forward OnPlayerLeaveDynamicRaceCP(playerid, checkpointid);
forward OnPlayerEnterDynamicArea(playerid, areaid);
forward OnPlayerLeaveDynamicArea(playerid, areaid);

// Callback Hook Section

static bool:Streamer_g_OPC = false;
static bool:Streamer_g_OPDC = false;
static bool:Streamer_g_OPPP = false;
static bool:Streamer_g_OPEC = false;
static bool:Streamer_g_OPLC = false;
static bool:Streamer_g_OPERC = false;
static bool:Streamer_g_OPLRC = false;
static bool:Streamer_g_RI = false;

public OnFilterScriptInit()
{
    if (!Streamer_g_RI)
    {
        Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1;
        Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1;
        Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1;
        Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1;
        Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1;
        Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1;
        Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1;
        Streamer_g_RI = true;
        Streamer_RegisterInterface();
    }
    if (funcidx("Streamer_OnFilterScriptInit") != -1)
    {
        return CallLocalFunction("Streamer_OnFilterScriptInit", "");
    }
    return 1;
}

#if defined _ALS_OnFilterScriptInit
    #undef OnFilterScriptInit
#else
    #define _ALS_OnFilterScriptInit
#endif
#define OnFilterScriptInit Streamer_OnFilterScriptInit

forward Streamer_OnFilterScriptInit();

public OnGameModeInit()
{
    if (!Streamer_g_RI)
    {
        Streamer_g_OPC = funcidx("Streamer_OnPlayerConnect") != -1;
        Streamer_g_OPDC = funcidx("Streamer_OnPlayerDisconnect") != -1;
        Streamer_g_OPPP = funcidx("Streamer_OnPlayerPickUpPickup") != -1;
        Streamer_g_OPEC = funcidx("Streamer_OnPlayerEnterCP") != -1;
        Streamer_g_OPLC = funcidx("Streamer_OnPlayerLeaveCP") != -1;
        Streamer_g_OPERC = funcidx("Streamer_OnPlayerEnterRaceCP") != -1;
        Streamer_g_OPLRC = funcidx("Streamer_OnPlayerLeaveRaceCP") != -1;
        Streamer_g_RI = true;
        Streamer_RegisterInterface();
    }
    if (funcidx("Streamer_OnGameModeInit") != -1)
    {
        return CallLocalFunction("Streamer_OnGameModeInit", "");
    }
    return 1;
}

#if defined _ALS_OnGameModeInit
    #undef OnGameModeInit
#else
    #define _ALS_OnGameModeInit
#endif
#define OnGameModeInit Streamer_OnGameModeInit

forward Streamer_OnGameModeInit();

public OnPlayerConnect(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_AddPlayer(playerid);
    }
    if (Streamer_g_OPC)
    {
        return CallLocalFunction("Streamer_OnPlayerConnect", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Streamer_OnPlayerConnect

forward Streamer_OnPlayerConnect(playerid);

public OnPlayerDisconnect(playerid, reason)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_RemovePlayer(playerid);
    }
    if (Streamer_g_OPDC)
    {
        return CallLocalFunction("Streamer_OnPlayerDisconnect", "dd", playerid, reason);
    }
    return 1;
}

#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect

forward Streamer_OnPlayerDisconnect(playerid, reason);

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyPickup(playerid, pickupid);
    }
    if (Streamer_g_OPPP)
    {
        return CallLocalFunction("Streamer_OnPlayerPickUpPickup", "dd", playerid, pickupid);
    }
    return 1;
}

#if defined _ALS_OnPlayerPickUpPickup
    #undef OnPlayerPickUpPickup
#else
    #define _ALS_OnPlayerPickUpPickup
#endif
#define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup

forward Streamer_OnPlayerPickUpPickup(playerid, pickupid);

public OnPlayerEnterCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 0);
    }
    if (Streamer_g_OPEC)
    {
        return CallLocalFunction("Streamer_OnPlayerEnterCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerEnterCheckpoint
    #undef OnPlayerEnterCheckpoint
#else
    #define _ALS_OnPlayerEnterCheckpoint
#endif
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP

forward Streamer_OnPlayerEnterCP(playerid);

public OnPlayerLeaveCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_CP, 1);
    }
    if (Streamer_g_OPLC)
    {
        return CallLocalFunction("Streamer_OnPlayerLeaveCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerLeaveCheckpoint
    #undef OnPlayerLeaveCheckpoint
#else
    #define _ALS_OnPlayerLeaveCheckpoint
#endif
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP

forward Streamer_OnPlayerLeaveCP(playerid);

public OnPlayerEnterRaceCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 0);
    }
    if (Streamer_g_OPERC)
    {
        return CallLocalFunction("Streamer_OnPlayerEnterRaceCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerEnterRaceCP
    #undef OnPlayerEnterRaceCheckpoint
#else
    #define _ALS_OnPlayerEnterRaceCP
#endif
#define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP

forward Streamer_OnPlayerEnterRaceCP(playerid);

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    if (!IsPlayerNPC(playerid))
    {
        Streamer_VerifyCheckpoint(playerid, STREAMER_TYPE_RACE_CP, 1);
    }
    if (Streamer_g_OPLRC)
    {
        return CallLocalFunction("Streamer_OnPlayerLeaveRaceCP", "d", playerid);
    }
    return 1;
}

#if defined _ALS_OnPlayerLeaveRaceCP
    #undef OnPlayerLeaveRaceCheckpoint
#else
    #define _ALS_OnPlayerLeaveRaceCP
#endif
#define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP

forward Streamer_OnPlayerLeaveRaceCP(playerid);

// PAWN Invoke Section

forward Streamer_PublicFunction();

public Streamer_PublicFunction()
{
    new Float:value;
    CreatePickup(0, 0, 0.0, 0.0, 0.0, 0);
    CreatePlayer3DTextLabel(0, "", 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0);
    CreatePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    DeletePlayer3DTextLabel(0, PlayerText3D:0);
    DestroyPickup(0);
    DestroyPlayerObject(0, 0);
    DisablePlayerCheckpoint(0);
    DisablePlayerRaceCheckpoint(0);
    GetPlayerInterior(0);
    GetPlayerPos(0, value, value, value);
    GetPlayerState(0);
    GetPlayerVirtualWorld(0);
    GetVehiclePos(0, value, value, value);
    MovePlayerObject(0, 0, 0.0, 0.0, 0.0, 0.0);
    RemovePlayerMapIcon(0, 0);
    SetPlayerCheckpoint(0, 0.0, 0.0, 0.0, 0.0);
    SetPlayerMapIcon(0, 0, 0.0, 0.0, 0.0, 0, 0, 0);
    SetPlayerObjectPos(0, 0, 0.0, 0.0, 0.0);
    SetPlayerObjectRot(0, 0, 0.0, 0.0, 0.0);
    SetPlayerRaceCheckpoint(0, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
    StopPlayerObject(0, 0);
    UpdatePlayer3DTextLabelText(0, PlayerText3D:0, 0, "");
    return 1;
}
Defina no seu gamemode..
Obrigado cara ajudou bastante. Porem restou 3 problemas.

Код:
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(8555) : error 021: symbol already defined: "GetPlayerDistanceToPoint"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(8564) : warning 202: number of arguments does not match definition
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(12387) : warning 202: number of arguments does not match definition
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(25889) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(25889) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(25889) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(27328) : error 017: undefined symbol "frename"
C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(27337) : error 017: undefined symbol "frename"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#8

Quote:

C:\Users\Vinycius Christian\Desktop\GMs para SAMP\3d\gamemodes\bph.pwn(8555) : error 021: symbol already defined: "GetPlayerDistanceToPoint"

GetPlayerDistanceToPoint ta definido duas vezes .. verefique.


manda as linhas de cada error
Reply
#9

Quote:
Originally Posted by Nill.Oliveira
Посмотреть сообщение
GetPlayerDistanceToPoint ta definido duas vezes .. verefique.


manda as linhas de cada error
Esse й do erro que vocк falou:
Код:
GetPlayerDistanceToPoint(playerid,Float:x,Float:y)
{
    new Float:x1,Float:y1,Float:z1; GetPlayerPos(playerid,x1,y1,z1);
    new Float:tmpdis = floatsqroot(floatpower(floatabs(floatsub(x,x1)),2)+
    floatpower(floatabs(floatsub(y,y1)),2));
    return floatround(tmpdis);
}
Aqui й o segundo erro que й logo depois das linhas ai de cima:

Код:
IsPlayerInCircle(playerid,Float:x,Float:y,radius)
{
    if(GetPlayerDistanceToPoint(playerid,Float:x,Float:y) < radius)
    {
    	return 1;
    }
    return 0;
}
Aqui os outros:
Код:
linha 27320						format(oldcarro,256,"/RPG/carros/%s.ini",tmp);
				        if(dini_Exists(oldcarro))
				        {
				            new vehicleid = GetOwnedVehicleID(giveid);
				            format(VeiculoNome[vehicleid], MAX_PLAYER_NAME, tmp2);
							format(vOwner[vehicleid], MAX_PLAYER_NAME, tmp2);
				            new newcarro[256];
							format(newcarro,256,"/RPG/carros/%s.ini",tmp2);
							frename(oldcarro, newcarro);
						}

						format(thestring,128,"-OperServ- Vocк renomeou a conta '%s' para '%s'.", tmp, tmp2);
						SendClientMessage(playerid, COLOR_YELLOW, thestring);
						format(thestring,128,"%s renomeou a conta '%s' para '%s'.", ReturnPlayer(playerid), tmp, tmp2);
						WriteLog("Admins2", thestring);
						GivePlayerGP(giveid,-100000);
						OnPlayerSave(giveid);
						frename(oldfile, file);
						SetPlayerName(giveid, tmp2);
						format(Player[giveid][pName],MAX_PLAYER_NAME,tmp2);
						if(Player[giveid][pMember] > 0)
linha 27341						{
Reply
#10

Entгo jente pode me ajudar ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)