SA-MP Forums Archive
Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( (/showthread.php?tid=111725)



Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

Hi i download stream from here http://forum.sa-mp.com/index.php?topic=62450.0 and i have problem, object are not add on server.

Here is what i do:

1. i put MidoStream.inc into pawno folder includes.
2. open MidoStream.pwn and compile it
3. than i define new object in my case its pgate and i put it like this
Код:
new lvgate;
new pgate; => here is my gate
new sajgate;
new ygate;
new gLastCar[301];
new gOoc[MAX_PLAYERS];
than i made object like this pgate = CreateStreamObject(xxxxx,x,x,x,xxx...)
here is code

Код:
ygate = CreateStreamObject(980,1245.712,-773.096,93.252,0.0,0.0,0.0);
	hitmangate = CreateStreamObject(980,1027.593,-369.597,75.500,0.0,0.0,0.0);
	sajgate = CreateStreamObject(976,-1534.499,482.124,6.349,0.0,0.0,0.0);
      pgate = CreateStreamObject(986,818.433,-2517.337,8.556,0.0,0.0,0.0); => this is my gate
After that i do this

Код:
public OnPlayerDisconnect(playerid)
{

      MidoStreamDisconnect(playerid); => i add like this, i didnt shure is this ok
	gActivePlayers[playerid]--;
	numplayers--;
	PlayerInfo[playerid][pAdjustable] = 1;
	OnPlayerUpdate(playerid);
	for(new i = 0; i < MAX_PLAYERS; i++)
	{
And at the end i make cmd

Код:
if (strcmp(cmdtext, "/pot", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
		{
  		MoveObject(pgate,818.433,-2517.337,1.256, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE OPEN.");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NOT A COP.");
	}
	if (strcmp(cmdtext, "/pza", true)==0)
	{
		if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
		{
 			MoveObject(pgate,818.433,-2517.337,8.556, 8.0);
			SendClientMessage(playerid, COLOR_GREEN, "GATE CLOSE");
		}
		else return SendClientMessage(playerid, COLOR_GREEN, "NOT A COP.");
	}
when i type cmd i see message OPEN/CLOSE GATE but there is no gate, maybe i didnt use good streamer?
can somebody help me with this?


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - member - 03.12.2009

you should post any topics regarding a filterscript/gamemode in the relevant topics to get better response. Anyways, you're using MoveObject, you need to use MoveStreamObject as the MidoStream topic says.




Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

Quote:
Originally Posted by [B2K
Hustler ]
you should post any topics regarding a filterscript/gamemode in the relevant topics to get better response. Anyways, you're using MoveObject, you need to use MoveStreamObject as the MidoStream topic says.

oK THAT IS ONE MISSTAKE, BUT OBJECT NEED EXIST DOESNT METTER WHAT IS CMD WRONG OBJECT MUST EXIST :S


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - member - 03.12.2009

You are missing the viewdist paramaters as you can see:

pawn Код:
CreateStreamObject(modelid, Float:xpos, Float:ypos, Float:zpos, Float:xrot, Float:yrot, Float:zrot, Float:viewdist)
CreateStreamObject(986,     818.433,    -2517.3378.556,      0.0,        0.0,        0.0,        Missing) //the 0.0 needs to be correct
You're object rotation needs to also be correct. 0.0 doesnt look good.


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

hmmm here is my gate when its close

Код:
CreateObject(986,818.433,-2517.337,8.556,0.0,0.0,0.0);;
I just put STREAM between Create and Object

i edid like this everyobject wich cant see on server


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

so i need add object in filterscript?


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - [XST]O_x - 03.12.2009

Quote:
Originally Posted by buonggiorno
so i need add object in filterscript?
Oh my god?


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - member - 03.12.2009

pawn Код:
pgate = CreateStreamObject(986, 818.433, -2517.337, 8.556, 0.0, 0.0, 0.0, 200.00);
        MoveStreamObject(pgate, 48.344, 6541.454, 34.556, 2.5);
Also:
Quote:
Originally Posted by MidoBan
  • Dont forget! Always change the #define MAX_STREAM_OBJECTS number on top of the MidoStream.pwn to the overall number of objects u got.



Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

#define MAX_STREAM_OBJECTS number is 15000 i dont have that much object

is it posibile to i make fs and there add object and cmd? not in game mode?


Re: Help me with object streaming please- HELP TO INSTAL IT SUCCSES :( - buonggiorno - 03.12.2009

Quote:
Originally Posted by ►ϻozilla Fir3foж◄
Quote:
Originally Posted by buonggiorno
so i need add object in filterscript?
Oh my god?
oHHH SORRY SMART GUY I DIDNT SEE GOOD THAT HE WRITE OK? SO I KNOW THAT I MUST USE MOVESTREAM NOT MOVEOBJECT...ARE YOU HAPPY NOW? I ASK FOR HELP NOT LOOKING FOR THE MOST STUPID COMMENT...