Raised This Month: $ Target: $400
 0% 

index out of bounds.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-04-2009 , 08:38   Re: index out of bounds.
Reply With Quote #8

Your code is useless and wrong, Sn!ff3r. Wrong in the way of you should do a check to see if max_clients is already saved ( better to save it out of this function though ) and is_user_connected is not needed. And using a macro would be more appropriate.

Code:
new max_clients ; [...] max_clients = get_maxplayers() [...] #define IsPlayer(%1)  ( 1 <= %1 <= max_clients )
Arkshine 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 16:58.


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