Streamer Include Problem
#1

pawn Код:
C:\Users\Matt\Desktop\SAMP\pawno\include\streamer.inc(490) : error 017: undefined symbol "BULLET_HIT_TYPE_PLAYER_OBJECT"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
line
pawn Код:
forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
    if (hittype == BULLET_HIT_TYPE_PLAYER_OBJECT)
    {
        Streamer_CallbackHook(STREAMER_OPWS, playerid, weaponid, hittype, hitid, fX, fY, fZ);
    }
    #if defined Streamer_OnPlayerWeaponShot
        return Streamer_OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, fX, fY, fZ);
    #else
        return 1;
    #endif
}
Reply
#2

You probably haven't got a certain include up to date, or the sa-mp files up to date, as I have that version of streamer, and it works and compiles fine.
Reply
#3

Quote:
Originally Posted by Jack_Leslie
Посмотреть сообщение
You probably haven't got a certain include up to date, or the sa-mp files up to date, as I have that version of streamer, and it works and compiles fine.
i have the latest include file and plugins
Reply
#4

add this defination on top of your streamer include

pawn Код:
#define BULLET_HIT_TYPE_NONE            0
#define BULLET_HIT_TYPE_PLAYER          1
#define BULLET_HIT_TYPE_VEHICLE         2
#define BULLET_HIT_TYPE_OBJECT          3
#define BULLET_HIT_TYPE_PLAYER_OBJECT   4
Reply
#5

@Red_Devi

Thanks it work
Reply
#6

No Problem
Reply


Forum Jump:


Users browsing this thread: