SA-MP Forums Archive
I've made a streamer but there is a problem in there.. - 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: I've made a streamer but there is a problem in there.. (/showthread.php?tid=97798)



I've made a streamer but there is a problem in there.. - RyDeR` - 16.09.2009

Hello, I've made an object streamer but the object aren't coming full.. I mean example..

* = an Object ( a long way )

***** ** * ** ** ******************* ** * ** * *** * **

It's a long way but not all objects are spawning sometimes, what can be the problem?


Re: I've made a streamer but there is a problem in there.. - Calgon - 16.09.2009

Nobody can see if you don't post the code.


Re: I've made a streamer but there is a problem in there.. - RyDeR` - 16.09.2009

ok, I solved that problem but now something else..

There is a lot of crash with this streamer i maded, can you something bad in this,

I think the problem is here..?

Код:
public R_CreateStreamedObject(cModel,Float:cX, Float:cY, Float:cZ, Float:crX, Float:crY, Float:crZ)
{
	if(ObjeSayisi < MAX_KURULACAKOBJE)
	{
	  Obje[ObjeSayisi][oID]	= cModel;
	  Obje[ObjeSayisi][oX]	= cX;
	  Obje[ObjeSayisi][oY]	= cY;
	  Obje[ObjeSayisi][oZ]	= cZ;
	  Obje[ObjeSayisi][rX]	= crX;
	  Obje[ObjeSayisi][rY]	= crY;
	  Obje[ObjeSayisi][rZ]	= crZ;
	  ObjeSayisi++;
 	}
	else return -1;
  return ObjeSayisi-1;
}