YSI: Iterator and Foreach (Array size does not match!)
#3

Quote:
Originally Posted by Kar
View Post
Why are you even doing this?

Streamer_SetMaxItems(STREAMER_TYPE_OBJECT, MAX_OBJECTS);
Yes it does that automatically, but I needed it to make my loop smaller, it's no harm.

Redefining MAX_OBJECTS does no harm either since I'm using streamer.

@Y_Less: Yes I read it, and the script was not working without the init, so I tried it. Before I used it I had this loop:
pawn Code:
foreach(Object, obj)
{
    printf("%d", obj);
}
That only printed this:
Quote:

1
2501
2
2501

Please note that I've created over 1200 objects, so these id's are not the only objects; and yes, they are created after I hooked the functions. Also, the objects did exist IG so they were for sure created.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)