Raised This Month: $ Target: $400
 0% 

How to loop all entities?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-19-2011 , 15:36   Re: How to loop all entities?
Reply With Quote #1

Quote:
Originally Posted by Exolent[jNr] View Post
I don't think entity_count() has anything to do with entity indexes.

Let's say you create 300 entities and delete the first 200.
That leaves 100 entities with indexes 201-300.
Therefore, the number of entities is less than the max entity index.
Then global_get(glb_maxEntities) will give us the total number of entities which were created and destroyed on the map ?
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-19-2011 , 15:37   Re: How to loop all entities?
Reply With Quote #2

Quote:
Originally Posted by abdul-rehman View Post
Then global_get(glb_maxEntities) will give us the total number of entities which were created and destroyed on the map ?
No, it gives the max entities allowed in the server.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 07-19-2011 , 15:40   Re: How to loop all entities?
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
No, it gives the max entities allowed in the server.
Oh, now i get it..!
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode