03.03.2015, 11:56
(
Последний раз редактировалось Kaliber; 03.03.2015 в 13:14.
)
Quote:
Static objects are using slots even if you are not in stream range, so your functions are not accurate.
|

But why you think, he has given an playerid Parameter?

Maybe because he only wanted the Objects which are streamed for the player...
But you can also script a global Object Pool function easily:
PHP код:
stock GetObjectPoolSize()
{
for(new i=MAX_OBJECTS; i!=0; i--) if(IsValidObject(i)) return i;
return 0;
}

//Edit: Yes..right i had a thought mistake