Raised This Month: $ Target: $400
 0% 

[ZP] Extra item: Thunder Knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 09-13-2010 , 02:43   Re: [HELP] [ZP] Extra item: Thunder Knife
Reply With Quote #9

Quote:
Originally Posted by nikhilgupta345 View Post
You justt LOVE using static right

Got a question, does maxplayers just get hte max amount of players that are allowed int he server or the amount of players in the server at the moment?

Because I usuallly use get_players
Regarding static i will say that they are faster and act more like a global variable because they are only created once as you can see in the above code

And regarding max players, get_maxplayers() returns the maximum slots on the server and you can store this value as a global during plugin start since the to change the max player setting you need to restart your server
AND plz dont use get_players( ... ) bcoz it is resource ful and difficult
__________________

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
 



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 16:26.


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