Raised This Month: $ Target: $400
 0% 

0 players on server


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 06-08-2014 , 06:49   Re: 0 players on server
Reply With Quote #5

No, why are you looping through the players? get_players already gives you the amount of players which is "iNum". You can specify whether it ignore bots in the flags, look up how to use the function on Google.

Also, I said the player count should be 1. Check against if( iNum == 1 ). client_disconnect is called before get_players and get_playersnum results are updated, so it will give you 1 if the last player disconnected.
Backstabnoob is offline
 



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 09:45.


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