Raised This Month: $ Target: $400
 0% 

get_players or get_maxplayers()


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
TheKidz
Senior Member
Join Date: May 2009
Old 10-21-2010 , 13:00   get_players or get_maxplayers()
Reply With Quote #1

wich what is better?
PHP Code:
new g_MaxPlayers;
public 
plugin_init() {
 
g_MaxPlayers get_maxplayers()
}

public 
func() {
 for( new 
1<= get_maxplayersi++ ) {
  
//do stuff
 
}

or:
PHP Code:
public func() {
 new 
Clients32 ], iNum
 get_players
ClientsiNum )
 for( new 
0iNumi++ ) {
  
//do stuff
 
}

maybe i wrote something wrong on there, but its just an example :z

obersavation: i always used the second one :s
__________________

Last edited by TheKidz; 11-06-2010 at 14:18.
TheKidz is offline
 


Thread Tools
Display Modes

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 10:21.


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