samp-incognito / samp-streamer-plugin

Streamer Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
229 stars 90 forks source link

AttachPlayerObjectToPlayer : removed in 0.3. I can only attach global objects. #164

Closed rt-2 closed 7 years ago

rt-2 commented 7 years ago

Hi, When I use the streamer version 2.7.9, everything works fine, but if I update to 2.8.2, I get this message: AttachPlayerObjectToPlayer : removed in 0.3. I can only attach global objects. I'm trying to attach a dynamic object to a player.

Thank you

samp-incognito commented 7 years ago

You need to use YSF.

rt-2 commented 7 years ago

Well, I am using it, at least I think I am. This is in my game mode:

#define SAARP_GAMEMODE
//#define DYNAMIC_MEMORY 1048576 //is #pragma dynamic
//#define DYNAMIC_MEMORY 2097152 //is #pragma dynamic
#define DYNAMIC_MEMORY 27452508 //is #pragma dynamic

// Main Libraries
#include <a_samp>
#include <crashdetect>
#include <foreach>
#include <strlib> //we should remove strlib and only include broman's strlib
#include <float>
#include <a_http>
#include <a_mysql>
#include <streamer>

// Pawn fixes
#include <ziggi_enterfix>

//YSI includes must be places after basic includes, but before izcmd and YSF
#include <YSI\y_timers>

#include <izcmd>

#include <SKY>
#include <weapon-config>//needs to be here (after SKY, before YSF, or bug)
#include <YSF>

//Physics and other functions
#include <RAKTOOLS>
#include <dphysics>
#include <OPA>

and this is in my server.cfg: plugins crashdetect SKY YSF mysql streamer FileFunctions FCNPC PathFinder MapAndreas

Thank you

ghost commented 7 years ago

Try to Load ysf after streamer, but the best idea would be to load it latest. Plus, what ysf version are you using?

rt-2 commented 7 years ago

Sorry for the late answer, YES, server.cfg: plugins crashdetect SKY mysql streamer FileFunctions FCNPC PathFinder MapAndreas YSF DOES work perfectly. Sorry I couldn't test it before.

Thank you very mush sir!