SA-MP Forums Archive
Streamer Include Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Streamer Include Problem (/showthread.php?tid=521194)



Streamer Include Problem - Team_PRO - 22.06.2014

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
}



Re: Streamer Include Problem - Jack_Leslie - 22.06.2014

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.


Re: Streamer Include Problem - Team_PRO - 22.06.2014

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


Re: Streamer Include Problem - ReD_DeVi - 22.06.2014

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



Re: Streamer Include Problem - Team_PRO - 22.06.2014

@Red_Devi

Thanks it work


Re: Streamer Include Problem - ReD_DeVi - 22.06.2014

No Problem