[Ajuda] Createdynamicobject
#1

Eu queria saber porque quando eu passo meus objetos para Createdynamicobject da esses Warnings

PHP Code:
C:\Users\Usuario\Desktop\BPF\pawno\include\streamer.inc(339) : warning 201redefinition of constant/macro (symbol "OnPlayerDisconnect")
C:\Users\Usuario\Desktop\BPF\pawno\include\streamer.inc(487) : warning 219local variable "hitid" shadows a variable at a preceding level
C
:\Users\Usuario\Desktop\GM RPG BPF\gamemodes\BPF.pwn(9668) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
Header size
:          12696 bytes
Code size
:          2802900 bytes
Data size
:          3296160 bytes
Stack
/heap size:      16384 bytesestimated maxusage=6484 cells (25936 bytes)
Total requirements6128140 bytes
3 Warnings

Ajuda!!!
Reply
#2

1є na linha 339 do cуdigo estбs a redefinir "OnPlayerDisconnect" ou seja, muito provavelmente deves estar a repetir o "OnPlayerDisconnect"

2є Na linha 487 do cуdigo estбs a criar a variбvel "hitid" que jб tinhas criado anteriormente, apaga-a ou muda-lhe o nome se precisares dela.

3є A funзг "Streamer_OnPlayerDisconnect" tem que ter um "return qualquercoisa" sendo o qualquercoisa a maior parte das vezes um 1 ou um 0 no fim antes do ultimo }
Reply
#3

ta mais um exemplo se eu deixar ele assim ele ira dar algum problema em meu servidor?
Reply
#4

PHP Code:
C:\Users\Usuario\Desktop\BPF\pawno\include\streamer.inc(339) : warning 201redefinition of constant/macro (symbol "OnPlayerDisconnect")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
Header size
:          12696 bytes
Code size
:          2802624 bytes
Data size
:          3296032 bytes
Stack
/heap size:      16384 bytesestimated maxusage=6484 cells (25936 bytes)
Total requirements6127736 bytes
1 Warning

ok arrumei 2! sу nao entendi o outro!
Reply
#5

Linha 339
PHP Code:
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect 
Ajuda aee
Reply
#6

Como o Kimossab disse a callback OnPlayerDisconnect foi redefinida. Quer dizer que existe duas callbacks chamadas OnPlayerDisconnect.
Olha isso:
pawn Code:
public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
Logo acima dei um exemplo. Desse jeito vai dar o aviso por existir duas callbacks com o mesmo nome.
Reply
#7

mais la nao tem outra linha igual a essa

PHP Code:
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect 
'-'

o Warnings ta nessa linha aii!

o que faзo?
Reply
#8

Estas a tentar definir algo que jб estб definido, tens que fazer isto:
pawn Code:
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect
Reply
#9

Mais ela ja esta assim mano!

nгo sei se vai ajudar mais olha ai o codigo da minha streamer!

PHP Code:
/*
 * Copyright © 2014 Incognito
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2...3.29178377
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
#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)
#define STREAMER_AREA_TYPE_CIRCLE (0)
#define STREAMER_AREA_TYPE_RECTANGLE (1)
#define STREAMER_AREA_TYPE_SPHERE (2)
#define STREAMER_AREA_TYPE_CUBE (3)
#define STREAMER_AREA_TYPE_POLYGON (4)
#define STREAMER_OBJECT_TYPE_GLOBAL (0)
#define STREAMER_OBJECT_TYPE_PLAYER (1)
#define STREAMER_OBJECT_TYPE_DYNAMIC (2)
#if !defined FLOAT_INFINITY
    #define FLOAT_INFINITY (Float:0x7F800000)
#endif
// Include File Version
public Streamer_IncludeFileVersion 0x27201;
#pragma unused Streamer_IncludeFileVersion
// Enumerator
enum
{
    
E_STREAMER_ATTACHED_OBJECT,
    
E_STREAMER_ATTACHED_PLAYER,
    
E_STREAMER_ATTACHED_VEHICLE,
    
E_STREAMER_ATTACH_OFFSET_X,
    
E_STREAMER_ATTACH_OFFSET_Y,
    
E_STREAMER_ATTACH_OFFSET_Z,
    
E_STREAMER_ATTACH_R_X,
    
E_STREAMER_ATTACH_R_Y,
    
E_STREAMER_ATTACH_R_Z,
    
E_STREAMER_ATTACH_X,
    
E_STREAMER_ATTACH_Y,
    
E_STREAMER_ATTACH_Z,
    
E_STREAMER_COLOR,
    
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_R_X,
    
E_STREAMER_MOVE_R_Y,
    
E_STREAMER_MOVE_R_Z,
    
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_STREAM_DISTANCE,
    
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_GetTickRate();
native Streamer_SetTickRate(rate);
native Streamer_GetMaxItems(type);
native Streamer_SetMaxItems(typeitems);
native Streamer_GetVisibleItems(type);
native Streamer_SetVisibleItems(typeitems);
native Streamer_GetCellDistance(&Float:distance);
native Streamer_SetCellDistance(Float:distance);
native Streamer_GetCellSize(&Float:size);
native Streamer_SetCellSize(Float:size);
// Natives (Updates)
native Streamer_ProcessActiveItems();
native Streamer_ToggleIdleUpdate(playeridtoggle);
native Streamer_IsToggleIdleUpdate(playerid);
native Streamer_ToggleItemUpdate(playeridtypetoggle);
native Streamer_IsToggleItemUpdate(playeridtype);
native Streamer_Update(playerid);
native Streamer_UpdateEx(playeridFloat:xFloat:yFloat:zworldid = -1interiorid = -1);
// Natives (Data Manipulation)
native Streamer_GetFloatData(type, {Text3D,_}:iddata, &Float:result);
native Streamer_SetFloatData(type, {Text3D,_}:iddataFloat:value);
native Streamer_GetIntData(type, {Text3D,_}:iddata);
native Streamer_SetIntData(type, {Text3D,_}:iddatavalue);
native Streamer_GetArrayData(type, {Text3D,_}:iddatadest[], maxlength sizeof dest);
native Streamer_SetArrayData(type, {Text3D,_}:iddata, const src[], maxlength sizeof src);
native Streamer_IsInArrayData(type, {Text3D,_}:iddatavalue);
native Streamer_AppendArrayData(type, {Text3D,_}:iddatavalue);
native Streamer_RemoveArrayData(type, {Text3D,_}:iddatavalue);
native Streamer_GetUpperBound(type);
// Natives (Miscellaneous)
native Streamer_GetDistanceToItem(Float:xFloat:yFloat:ztype, {Text3D,_}:id, &Float:distancedimensions 3);
native Streamer_GetItemInternalID(playeridtype, {Text3D,_}:streamerid);
native Streamer_GetItemStreamerID(playeridtype, {Text3D,_}:internalid);
native Streamer_IsItemVisible(playeridtype, {Text3D,_}:id);
native Streamer_DestroyAllVisibleItems(playeridtypeserverwide 1);
native Streamer_CountVisibleItems(playeridtypeserverwide 1);
native Streamer_DestroyAllItems(typeserverwide 1);
native Streamer_CountItems(typeserverwide 1);
// Natives (Objects)
native CreateDynamicObject(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzworldid = -1interiorid = -1playerid = -1Float:streamdistance 200.0Float:drawdistance 0.0);
native DestroyDynamicObject(objectid);
native IsValidDynamicObject(objectid);
native SetDynamicObjectPos(objectidFloat:xFloat:yFloat:z);
native GetDynamicObjectPos(objectid, &Float:x, &Float:y, &Float:z);
native SetDynamicObjectRot(objectidFloat:rxFloat:ryFloat:rz);
native GetDynamicObjectRot(objectid, &Float:rx, &Float:ry, &Float:rz);
native MoveDynamicObject(objectidFloat:xFloat:yFloat:zFloat:speedFloat:rx = -1000.0Float:ry = -1000.0Float:rz = -1000.0);
native StopDynamicObject(objectid);
native IsDynamicObjectMoving(objectid);
native AttachCameraToDynamicObject(playeridobjectid);
native AttachDynamicObjectToVehicle(objectidvehicleidFloat:offsetxFloat:offsetyFloat:offsetzFloat:rxFloat:ryFloat:rz);
native EditDynamicObject(playeridobjectid);
native GetDynamicObjectMaterial(objectidmaterialindex, &modelidtxdname[], texturename[], &materialcolormaxtxdname sizeof txdnamemaxtexturename sizeof texturename);
native SetDynamicObjectMaterial(objectidmaterialindexmodelid, const txdname[], const texturename[], materialcolor 0);
native GetDynamicObjectMaterialText(objectidmaterialindextext[], &materialsizefontface[], &fontsize, &bold, &fontcolor, &backcolor, &textalignmentmaxtext sizeof textmaxfontface sizeof fontface);
native SetDynamicObjectMaterialText(objectidmaterialindex, const text[], materialsize OBJECT_MATERIAL_SIZE_256x128, const fontface[] = "Arial"fontsize 24bold 1fontcolor 0xFFFFFFFFbackcolor 0textalignment 0);
// Natives (Pickups)
native CreateDynamicPickup(modelidtypeFloat:xFloat:yFloat:zworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0);
native DestroyDynamicPickup(pickupid);
native IsValidDynamicPickup(pickupid);
// Natives (Checkpoints)
native CreateDynamicCP(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0);
native DestroyDynamicCP(checkpointid);
native IsValidDynamicCP(checkpointid);
native TogglePlayerDynamicCP(playeridcheckpointidtoggle);
native TogglePlayerAllDynamicCPs(playeridtoggle);
native IsPlayerInDynamicCP(playeridcheckpointid);
native GetPlayerVisibleDynamicCP(playerid);
// Natives (Race Checkpoints)
native CreateDynamicRaceCP(typeFloat:xFloat:yFloat:zFloat:nextxFloat:nextyFloat:nextzFloat:sizeworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0);
native DestroyDynamicRaceCP(checkpointid);
native IsValidDynamicRaceCP(checkpointid);
native TogglePlayerDynamicRaceCP(playeridcheckpointidtoggle);
native TogglePlayerAllDynamicRaceCPs(playeridtoggle);
native IsPlayerInDynamicRaceCP(playeridcheckpointid);
native GetPlayerVisibleDynamicRaceCP(playerid);
// Natives (Map Icons)
native CreateDynamicMapIcon(Float:xFloat:yFloat:ztypecolorworldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0style MAPICON_LOCAL);
native DestroyDynamicMapIcon(iconid);
native IsValidDynamicMapIcon(iconid);
// Natives (3D Text Labels)
native Text3D:CreateDynamic3DTextLabel(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0worldid = -1interiorid = -1playerid = -1Float:streamdistance 100.0);
native DestroyDynamic3DTextLabel(Text3D:id);
native IsValidDynamic3DTextLabel(Text3D:id);
native GetDynamic3DTextLabelText(Text3D:idtext[], maxlength sizeof text);
native UpdateDynamic3DTextLabelText(Text3D:idcolor, const text[]);
// Natives (Areas)
native CreateDynamicCircle(Float:xFloat:yFloat:sizeworldid = -1interiorid = -1playerid = -1);
native CreateDynamicRectangle(Float:minxFloat:minyFloat:maxxFloat:maxyworldid = -1interiorid = -1playerid = -1);
native CreateDynamicSphere(Float:xFloat:yFloat:zFloat:sizeworldid = -1interiorid = -1playerid = -1);
native CreateDynamicCube(Float:minxFloat:minyFloat:minzFloat:maxxFloat:maxyFloat:maxzworldid = -1interiorid = -1playerid = -1);
native CreateDynamicPolygon(Float:points[], Float:minz = -FLOAT_INFINITYFloat:maxz FLOAT_INFINITYmaxpoints sizeof pointsworldid = -1interiorid = -1playerid = -1);
native DestroyDynamicArea(areaid);
native IsValidDynamicArea(areaid);
native GetDynamicPolygonPoints(areaidFloat:points[], maxlength sizeof points);
native GetDynamicPolygonNumberPoints(areaid);
native TogglePlayerDynamicArea(playeridareaidtoggle);
native TogglePlayerAllDynamicAreas(playeridtoggle);
native IsPlayerInDynamicArea(playeridareaidrecheck 0);
native IsPlayerInAnyDynamicArea(playeridrecheck 0);
native IsAnyPlayerInDynamicArea(areaidrecheck 0);
native IsAnyPlayerInAnyDynamicArea(recheck 0);
native GetPlayerDynamicAreas(playeridareas[], maxlength sizeof areas);
native GetPlayerNumberDynamicAreas(playerid);
native IsPointInDynamicArea(areaidFloat:xFloat:yFloat:z);
native IsPointInAnyDynamicArea(Float:xFloat:yFloat:z);
native AttachDynamicAreaToObject(areaidobjectidtype STREAMER_OBJECT_TYPE_DYNAMICplayerid INVALID_PLAYER_ID);
native AttachDynamicAreaToPlayer(areaidplayerid);
native AttachDynamicAreaToVehicle(areaidvehicleid);
// Natives (Extended)
native CreateDynamicObjectEx(modelidFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rzFloat:drawdistance 0.0Float:streamdistance 200.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicPickupEx(modelidtypeFloat:xFloat:yFloat:zFloat:streamdistance 100.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicCPEx(Float:xFloat:yFloat:zFloat:sizeFloat:streamdistance 100.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicRaceCPEx(typeFloat:xFloat:yFloat:zFloat:nextxFloat:nextyFloat:nextzFloat:sizeFloat:streamdistance 100.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicMapIconEx(Float:xFloat:yFloat:ztypecolorstyle MAPICON_LOCALFloat:streamdistance 100.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native Text3D:CreateDynamic3DTextLabelEx(const text[], colorFloat:xFloat:yFloat:zFloat:drawdistanceattachedplayer INVALID_PLAYER_IDattachedvehicle INVALID_VEHICLE_IDtestlos 0Float:streamdistance 100.0worlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicCircleEx(Float:xFloat:yFloat:sizeworlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicRectangleEx(Float:minxFloat:minyFloat:maxxFloat:maxyworlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicSphereEx(Float:xFloat:yFloat:zFloat:sizeworlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicCubeEx(Float:minxFloat:minyFloat:minzFloat:maxxFloat:maxyFloat:maxzworlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
native CreateDynamicPolygonEx(Float:points[], Float:minz = -FLOAT_INFINITYFloat:maxz FLOAT_INFINITYmaxpoints sizeof pointsworlds[] = { -}, interiors[] = { -}, players[] = { -}, maxworlds sizeof worldsmaxinteriors sizeof interiorsmaxplayers sizeof players);
// Natives (Internal)
native Streamer_CallbackHook(callback, {Float,_}:...);
// Natives (Deprecated)
native Streamer_TickRate(rate);
native Streamer_MaxItems(typeitems);
native Streamer_VisibleItems(typeitems);
native Streamer_CellDistance(Float:distance);
native Streamer_CellSize(Float:size);
native DestroyAllDynamicObjects();
native CountDynamicObjects();
native DestroyAllDynamicPickups();
native CountDynamicPickups();
native DestroyAllDynamicCPs();
native CountDynamicCPs();
native DestroyAllDynamicRaceCPs();
native CountDynamicRaceCPs();
native DestroyAllDynamicMapIcons();
native CountDynamicMapIcons();
native DestroyAllDynamic3DTextLabels();
native CountDynamic3DTextLabels();
native DestroyAllDynamicAreas();
native CountDynamicAreas();
// Callbacks
forward OnDynamicObjectMoved(objectid);
forward OnPlayerEditDynamicObject(playeridobjectidresponseFloat:xFloat:yFloat:zFloat:rxFloat:ryFloat:rz);
forward OnPlayerSelectDynamicObject(playeridobjectidmodelidFloat:xFloat:yFloat:z);
forward OnPlayerShootDynamicObject(playeridweaponidobjectidFloat:xFloat:yFloat:z);
forward OnPlayerPickUpDynamicPickup(playeridpickupid);
forward OnPlayerEnterDynamicCP(playeridcheckpointid);
forward OnPlayerLeaveDynamicCP(playeridcheckpointid);
forward OnPlayerEnterDynamicRaceCP(playeridcheckpointid);
forward OnPlayerLeaveDynamicRaceCP(playeridcheckpointid);
forward OnPlayerEnterDynamicArea(playeridareaid);
forward OnPlayerLeaveDynamicArea(playeridareaid);
// Callback Hook Section
#define STREAMER_OPC (0)
#define STREAMER_OPDC (1)
#define STREAMER_OPEO (2)
#define STREAMER_OPSO (3)
#define STREAMER_OPPP (4)
#define STREAMER_OPEC (5)
#define STREAMER_OPLC (6)
#define STREAMER_OPERC (7)
#define STREAMER_OPLRC (8)
#define STREAMER_OPWS (9)
public OnPlayerConnect(playerid)
{
    
Streamer_CallbackHook(STREAMER_OPCplayerid);
    
#if defined Streamer_OnPlayerConnect
        
return Streamer_OnPlayerConnect(playerid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerConnect
    
forward Streamer_OnPlayerConnect(playerid);
#endif
#if defined _ALS_OnPlayerConnect
    #undef OnPlayerConnect
#else
    #define _ALS_OnPlayerConnect
#endif
#define OnPlayerConnect Streamer_OnPlayerConnect
public OnPlayerDisconnect(playeridreason)
{
    
Streamer_CallbackHook(STREAMER_OPDCplayeridreason);
    
#if defined Streamer_OnPlayerDisconnect
        
return Streamer_OnPlayerDisconnect(playeridreason);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerDisconnect
    
forward Streamer_OnPlayerDisconnect(playeridreason);
#endif
#if defined _ALS_OnPlayerDisconnect
    #undef OnPlayerDisconnect
#else
    #define _ALS_OnPlayerDisconnect
#endif
#define OnPlayerDisconnect Streamer_OnPlayerDisconnect
public OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ)
{
    if (
playerobject)
    {
        
Streamer_CallbackHook(STREAMER_OPEOplayeridplayerobjectobjectidresponsefXfYfZfRotXfRotYfRotZ);
    }
    
#if defined Streamer_OnPlayerEditObject
        
return Streamer_OnPlayerEditObject(playeridplayerobjectobjectidresponsefXfYfZfRotXfRotYfRotZ);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerEditObject
    
forward Streamer_OnPlayerEditObject(playeridplayerobjectobjectidresponseFloat:fXFloat:fYFloat:fZFloat:fRotXFloat:fRotYFloat:fRotZ);
#endif
#if defined _ALS_OnPlayerEditObject
    #undef OnPlayerEditObject
#else
    #define _ALS_OnPlayerEditObject
#endif
#define OnPlayerEditObject Streamer_OnPlayerEditObject
public OnPlayerSelectObject(playeridtypeobjectidmodelidFloat:fXFloat:fYFloat:fZ)
{
    if (
type == SELECT_OBJECT_PLAYER_OBJECT)
    {
        
Streamer_CallbackHook(STREAMER_OPSOplayeridtypeobjectidmodelidfXfYfZ);
    }
    
#if defined Streamer_OnPlayerSelectObject
        
return Streamer_OnPlayerSelectObject(playeridtypeobjectidmodelidfXfYfZ);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerSelectObject
    
forward Streamer_OnPlayerSelectObject(playeridtypeobjectidmodelidFloat:fXFloat:fYFloat:fZ);
#endif
#if defined _ALS_OnPlayerSelectObject
    #undef OnPlayerSelectObject
#else
    #define _ALS_OnPlayerSelectObject
#endif
#define OnPlayerSelectObject Streamer_OnPlayerSelectObject
public OnPlayerPickUpPickup(playeridpickupid)
{
    
Streamer_CallbackHook(STREAMER_OPPPplayeridpickupid);
    
#if defined Streamer_OnPlayerPickUpPickup
        
return Streamer_OnPlayerPickUpPickup(playeridpickupid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerPickUpPickup
    
forward Streamer_OnPlayerPickUpPickup(playeridpickupid);
#endif
#if defined _ALS_OnPlayerPickUpPickup
    #undef OnPlayerPickUpPickup
#else
    #define _ALS_OnPlayerPickUpPickup
#endif
#define OnPlayerPickUpPickup Streamer_OnPlayerPickUpPickup
public OnPlayerEnterCheckpoint(playerid)
{
    
Streamer_CallbackHook(STREAMER_OPECplayerid);
    
#if defined Streamer_OnPlayerEnterCP
        
return Streamer_OnPlayerEnterCP(playerid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerEnterCP
    
forward Streamer_OnPlayerEnterCP(playerid);
#endif
#if defined _ALS_OnPlayerEnterCheckpoint
    #undef OnPlayerEnterCheckpoint
#else
    #define _ALS_OnPlayerEnterCheckpoint
#endif
#define OnPlayerEnterCheckpoint Streamer_OnPlayerEnterCP
public OnPlayerLeaveCheckpoint(playerid)
{
    
Streamer_CallbackHook(STREAMER_OPLCplayerid);
    
#if defined Streamer_OnPlayerLeaveCP
        
return Streamer_OnPlayerLeaveCP(playerid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerLeaveCP
    
forward Streamer_OnPlayerLeaveCP(playerid);
#endif
#if defined _ALS_OnPlayerLeaveCheckpoint
    #undef OnPlayerLeaveCheckpoint
#else
    #define _ALS_OnPlayerLeaveCheckpoint
#endif
#define OnPlayerLeaveCheckpoint Streamer_OnPlayerLeaveCP
public OnPlayerEnterRaceCheckpoint(playerid)
{
    
Streamer_CallbackHook(STREAMER_OPERCplayerid);
    
#if defined Streamer_OnPlayerEnterRaceCP
        
return Streamer_OnPlayerEnterRaceCP(playerid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerEnterRaceCP
    
forward Streamer_OnPlayerEnterRaceCP(playerid);
#endif
#if defined _ALS_OnPlayerEnterRaceCP
    #undef OnPlayerEnterRaceCheckpoint
#else
    #define _ALS_OnPlayerEnterRaceCP
#endif
#define OnPlayerEnterRaceCheckpoint Streamer_OnPlayerEnterRaceCP
public OnPlayerLeaveRaceCheckpoint(playerid)
{
    
Streamer_CallbackHook(STREAMER_OPLRCplayerid);
    
#if defined Streamer_OnPlayerLeaveRaceCP
        
return Streamer_OnPlayerLeaveRaceCP(playerid);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerLeaveRaceCP
    
forward Streamer_OnPlayerLeaveRaceCP(playerid);
#endif
#if defined _ALS_OnPlayerLeaveRaceCP
    #undef OnPlayerLeaveRaceCheckpoint
#else
    #define _ALS_OnPlayerLeaveRaceCP
#endif
#define OnPlayerLeaveRaceCheckpoint Streamer_OnPlayerLeaveRaceCP
public OnPlayerWeaponShot(playeridweaponidhittypehitiddFloat:fXFloat:fYFloat:fZ)
{
    if (
hittype == BULLET_HIT_TYPE_PLAYER_OBJECT)
    {
        
Streamer_CallbackHook(STREAMER_OPWSplayeridweaponidhittypehitiddfXfYfZ);
    }
    
#if defined Streamer_OnPlayerWeaponShot
        
return Streamer_OnPlayerWeaponShot(playeridweaponidhittypehitiddfXfYfZ);
    
#else
        
return 1;
    
#endif
}
#if defined Streamer_OnPlayerWeaponShot
    
forward Streamer_OnPlayerWeaponShot(playeridweaponidhittypehitiddFloat:fXFloat:fYFloat:fZ);
#endif
#if defined _ALS_OnPlayerWeaponShot
    #undef OnPlayerWeaponShot
#else
    #define _ALS_OnPlayerWeaponShot
#endif
#define OnPlayerWeaponShot Streamer_OnPlayerWeaponShot 
Reply
#10

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

faz download dnv da include e dos plugins e substitui pelos seus.
Reply
#11

mais й esse dai que eu tenho '-'
baixei nesse site aii
Reply
#12

'-' :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)