Errors bei Incognitos Object Streamer

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Schönen Guten Tag Ich habe ein Problem mit Incognitos Object Streamer Klick
    undzwar kommen beim Compilen des Scriptes folgende Errors:
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(157) : error 017: undefined symbol "OBJECT_MATERIAL_SIZE_256x128"
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(238) : error 017: undefined symbol "MAPICON_LOCAL"
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(377) : warning 235: public function lacks forward declaration (symbol "OnPlayerEditObject")
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(399) : warning 235: public function lacks forward declaration (symbol "OnPlayerSelectObject")
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(401) : error 017: undefined symbol "SELECT_OBJECT_PLAYER_OBJECT"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.

    Ich verstehe diese Errors nicht wirklich da ich die Include benutze die beim Download mit dabei war.


    Wäre nett wenn mir jemand helfen könnte


    LG

  • wtf ist das vill in dein script :huh:


    OBJECT_MATERIAL_SIZE_256x128


    su den kack ma
    das ist irgendwo verbaut was net definirt ist

  • Nope ist auch nicht im Script eingebaut,
    Habs dafür schon in der Include gefunden.
    native SetDynamicObjectMaterialText(objectid, materialindex, const text[], materialsize = OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial", fontsize = 24, bold = 1, fontcolor = 0xFFFFFFFF, backcolor = 0, textalignment = 0);


    Sonst wird es nirgends erwähnt

  • hier nimm meine ka scheiß update würde ich mal sagen ;)


    Spoiler anzeigen
    /*
    SA-MP Streamer Plugin v2.5.2 R2
    Copyright © 2011 Incognito

    Spoiler anzeigen
    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.

    Spoiler anzeigen
    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.

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

    Spoiler anzeigen
    #include <a_samp>

    Spoiler anzeigen
    // Definitions

    Spoiler anzeigen
    #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)

    Spoiler anzeigen
    // Enumerator

    Spoiler anzeigen
    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
    }

    Spoiler anzeigen
    // Natives (Settings)

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

    Spoiler anzeigen
    // Natives (Updates)

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

    Spoiler anzeigen
    // Natives (Data Manipulation)

    Spoiler anzeigen
    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);

    Spoiler anzeigen
    // Natives (Miscellaneous)

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

    Spoiler anzeigen
    // Natives (Objects)

    Spoiler anzeigen
    native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 200.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();

    Spoiler anzeigen
    // Natives (Pickups)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (Checkpoints)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (Race Checkpoints)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (Map Icons)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (3D Text Labels)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (Areas)

    Spoiler anzeigen
    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();

    Spoiler anzeigen
    // Natives (Internals)

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

    Spoiler anzeigen
    // Callbacks

    Spoiler anzeigen
    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);

    Spoiler anzeigen
    // Callback Hook Section

    Spoiler anzeigen
    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;

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnFilterScriptInit();

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnGameModeInit();

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

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

    Spoiler anzeigen
    forward Streamer_OnPlayerConnect(playerid);

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

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

    Spoiler anzeigen
    forward Streamer_OnPlayerDisconnect(playerid, reason);

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

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

    Spoiler anzeigen
    forward Streamer_OnPlayerPickUpPickup(playerid, pickupid);

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnPlayerEnterCP(playerid);

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnPlayerLeaveCP(playerid);

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnPlayerEnterRaceCP(playerid);

    Spoiler anzeigen
    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;
    }

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

    Spoiler anzeigen
    forward Streamer_OnPlayerLeaveRaceCP(playerid);

    Spoiler anzeigen
    // PAWN Invoke Section

    Spoiler anzeigen
    forward Streamer_PublicFunction();

    Spoiler anzeigen
    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;
    }

  • Dankeschön hat geklappt :)


    Sorry neuer Fehler habe nun 2 Warnings und der Server startet nicht -.-
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(430) : warning 202: number of arguments does not match definition
    C:\Users\Fabian\Desktop\Samp Scripts\CRL_Server\pawno\include\streamer.inc(444) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Warnings.