Jump to content

[0.2x/0.3a]Cum sa faci sa mearga xStreamer


IstuntmanI

Recommended Posts

  • Replies 110
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 2 months later...
  • 2 weeks later...
Guest Asasi

C:\Users\Gabys\Desktop\samper\pawno\include\xStreamer.inc(58) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          9340 bytes

Code size:          1493568 bytes

Data size:          5264836 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)

Total requirements: 6784128 bytes

1 Warning.

Ce fac daca mi-a dat warningu asta ?

Link to comment
Share on other sites

C:\Users\Gabys\Desktop\samper\pawno\include\xStreamer.inc(58) : warning 201: redefinition of constant/macro (symbol "SetPlayerPos")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:           9340 bytes

Code size:          1493568 bytes

Data size:          5264836 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)

Total requirements: 6784128 bytes

1 Warning.

Arata linia, dude.

---------------------------------------------------------------------------------------------------------------------------------------------------

A si nu merge  :  SetObjectRot  .... Ce trebuie sa fac sa mearga  SetObjectRot ?

In ce sens nu iti merge?

Link to comment
Share on other sites

Guest Asasi

/*  
	xStreamer by Boylett
 */

#if defined _xstreamer_included
	#endinput
#endif
#define _xstreamer_included
#pragma library xstreamer

#include <a_samp>

//------------------------------------------------------------------------------

native CreateStreamedObject(modelid,Float:x,Float:y,Float:z,Float:rx,Float:ry,Float:rz,virtualworld = 0,interior = 0);
native DestroyStreamedObject(objectid);
native MoveStreamedObject(objectid,Float:x,Float:y,Float:z,Float:speed);
native StopStreamedObject(objectid);
native DestroyObjectsCreatedByMe();
native StreamObjects(playerid,Float:x,Float:y,Float:z,virtualworld = 0,interior = 0);
native UpdateMovingObjects();

forward OnStreamedObjectMoved(objectid);

stock xStreamer_SetPlayerPos(playerid,Float:x,Float:y,Float:z)
{
	UpdateMovingObjects();
	StreamObjects(playerid,x,y,z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
	SetPlayerPos(playerid,x,y,z);
}

stock xStreamer_SetPlayerInterior(playerid,interiorid)
{
	new
		Float:x,
		Float:y,
		Float:z;
	GetPlayerPos(playerid,x,y,z);
	UpdateMovingObjects();
	StreamObjects(playerid,x,y,z,GetPlayerVirtualWorld(playerid),interiorid);
	SetPlayerInterior(playerid,interiorid);
}

stock xStreamer_SetPlayerVirtualWorld(playerid,vwid)
{
	new
		Float:x,
		Float:y,
		Float:z;
	GetPlayerPos(playerid,x,y,z);
	UpdateMovingObjects();
	StreamObjects(playerid,x,y,z,vwid,GetPlayerInterior(playerid));
	SetPlayerVirtualWorld(playerid,vwid);
}

#if !defined DONT_REPLACE_NATIVES

#define SetPlayerPos xStreamer_SetPlayerPos
#define SetPlayerInterior xStreamer_SetPlayerInterior
#define SetPlayerVirtualWorld xStreamer_SetPlayerVirtualWorld
#define CreateObject CreateStreamedObject
#define DestroyObject DestroyStreamedObject
#define MoveObject MoveStreamedObject
#define StopObject StopStreamedObject

#endif

linia 58 e asta : #define SetPlayerPos xStreamer_SetPlayerPos

Asta e tot scriptu defapt e INC.   E include de la xStreamer si cand dau compile la mode imi da eraorea care am postato mai sus .

A si setobject nuj dc nu merge creca ca trebuie modificat de la streamer ... in loc de SetObjectRot sa pun StreamSetObjectRot sau nuj cum naiba ...

Link to comment
Share on other sites

  • 2 weeks later...

Salut!

Am reusit sa iau si eu plugin-ul si tot ce trebuie ....

Imi merge asa cum ati mai scrsi mai sus sa pun in loc de 500 , 0 dar am o intrebare acest stream are vreo legatura cu obiectele din GM deoarece nu imi mai incarca toate obiectele .....

Inainte pana sa merga plugin-ul mergea dar acum nu mai apar ...

Nu am depasit nici limita de obiecte .....

Ma puteti ajuta, va rog frumos?

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.