Raised This Month: $51 Target: $400
 12% 

Loop all Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-10-2012 , 02:59   Loop all Players
Reply With Quote #1

Hey Guys,

What do you think is the better way to loop all players?

Using get_players or get_maxplayers?
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-10-2012 , 09:41   Re: Loop all Players
Reply With Quote #2

It depends on the situation.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 04-10-2012 , 10:00   Re: Loop all Players
Reply With Quote #3

I want to count the Terrorists. But if g_HasItem[tempid] is true, I dont count this Player.
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-10-2012 , 10:01   Re: Loop all Players
Reply With Quote #4

Then use max players since you cannot check that with get_players() without looping again.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
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 15:19.


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