Help me with object streaming please- HELP TO INSTAL IT SUCCSES :(
#1

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?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)