Raised This Month: $ Target: $400
 0% 

Best player of the map?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-12-2012 , 16:40   Re: Best player of the map?
Reply With Quote #10

Quote:
Originally Posted by Santaaa View Post
So this is a correct loop?

PHP Code:
for (new 1<=get_maxplayers(); i++) 
No. You are calling get_maxplayers() n * p times, where n is the number of times the containing function is called and p is the number of players in the server.
get_maxplayers() is never going to change after the plugin is loaded, so you only need to call it one time per map (hence why I said use plugin_init()).

Store the value in a global variable like I said to do.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:08.


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