22.04.2014, 23:48
(
Последний раз редактировалось nickdodd25; 22.04.2014 в 23:51.
Причина: The amount of spelling errors is too dam high!!
)
Quote:
Keep in mind the total amount of objects is not the same as the highest object ID.
|
Quote:
Streamer_GetUpperBound(STREAMER_TYPE_OBJECT); is the way to go with looping through all objects.
That function will always return the highest object ID in the list, while CountDynamicObjects just counts the amount of objects in the list. This would mean if the list consists of {0, 1, 5, 8}, it would mean that with CountDynamicObjects it would only get ID 0 and 1, because the total amount of objects is four. While GetUpperBound would get 0, 1, 5 and 8 in your loop, as it gets the highest possible number, which is 8. |
Thanks alot just solved quite a few issues i have been having!
Also anyone know what the last parameter does on
pawn Код:
Streamer_CountItems(type, serverwide = 1);