Streamer, loop through objects.
#1

I'm not using regular objects (well technically I am but bleh). How do I loop through every object in streamer? It's obviously not Max_Objects. I was thinking something along this line: "for(new obj; obj < Streamer_GetMaxItems(STREAMER_TYPE_OBJECT); obj++)". Is that correct?

Basically, how are we supposed to loop through dynamic objects?

EDIT: To use GetMaxItems, you have to SetMaxItems, that is not the solution I'm going for here. I want to only loop through the objects that exist. Like maybe a foreach iterator? If iterators are my only shot at getting this right, can someone show me how to use YSI's iterator functions?
Reply


Messages In This Thread
Streamer, loop through objects. - by Crayder - 31.01.2015, 01:47
Re: Streamer, loop through objects. - by CalvinC - 31.01.2015, 10:18
Re: Streamer, loop through objects. - by Crayder - 31.01.2015, 18:08
Re: Streamer, loop through objects. - by Schneider - 31.01.2015, 18:25
Re: Streamer, loop through objects. - by Crayder - 31.01.2015, 19:51
Re: Streamer, loop through objects. - by DRIFT_HUNTER - 31.01.2015, 19:58
Re: Streamer, loop through objects. - by Crayder - 31.01.2015, 20:59

Forum Jump:


Users browsing this thread: 2 Guest(s)