SA-MP Forums Archive
Mido Streamer Help - 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: Mido Streamer Help (/showthread.php?tid=96577)



Mido Streamer Help - _TeRmiNaToR_ - 09.09.2009

I use mideostreamer but the objects are not loading, or not create.
My Code:

Код:
 	new Float:X = -38;
	for(new Objects; Objects < 500; Objects++)
	{
		LoopObjects = CreateStreamObject(13666, X, 2492, 15, 0, 0, 9.3, 1000);
		Objects++;
		X += 3.000;
		if(LoopObjects == 500)
		{
		  break;
		}
		else continue;
	}
Without streamer are worked but 250 objects create. I will 500.


Re: Mido Streamer Help - Donny_k - 09.09.2009

Quote:
Originally Posted by _TeRmiNaToR_
I use mideostreamer but the objects are not loading, or not create.
My Code:

Код:
 	new Float:X = -38;
	for(new Objects; Objects < 500; Objects++)
	{
		LoopObjects = CreateStreamObject(13666, X, 2492, 15, 0, 0, 9.3, 1000);
		Objects++;
		X += 3.000;
		if(LoopObjects == 500)
		{
		  break;
		}
		else continue;
	}
Without streamer are worked but 250 objects create. I will 500.
pawn Код:
//all redundant code
        if(LoopObjects == 500)
        {
          break;
        }
        else continue;
Remove it as it's useless.

pawn Код:
/*  for(new Objects; Objects < 500; */Objects++//)
//  {
//      LoopObjects = CreateStreamObject(13666, X, 2492, 15, 0, 0, 9.3, 1000);
        Objects++;
You are incrementing it yourself on each itteration, remove the last 'Objects++;'.


Re: Mido Streamer Help - _TeRmiNaToR_ - 09.09.2009

Quote:
Originally Posted by Donny
Quote:
Originally Posted by _TeRmiNaToR_
I use mideostreamer but the objects are not loading, or not create.
My Code:

Код:
 	new Float:X = -38;
	for(new Objects; Objects < 500; Objects++)
	{
		LoopObjects = CreateStreamObject(13666, X, 2492, 15, 0, 0, 9.3, 1000);
		Objects++;
		X += 3.000;
		if(LoopObjects == 500)
		{
		  break;
		}
		else continue;
	}
Without streamer are worked but 250 objects create. I will 500.
pawn Код:
//all redundant code
        if(LoopObjects == 500)
        {
          break;
        }
        else continue;
Remove it as it's useless.

pawn Код:
/*  for(new Objects; Objects < 500; */Objects++//)
//  {
//      LoopObjects = CreateStreamObject(13666, X, 2492, 15, 0, 0, 9.3, 1000);
        Objects++;
You are incrementing it yourself on each itteration, remove the last 'Objects++;'.
Tankhs but now over the problem. Wthiout streamer are work, but with streamer are not work.