Raised This Month: $ Target: $400
 0% 

Server crash with loop


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Pattinho
Member
Join Date: Dec 2007
Old 05-10-2012 , 09:07   Re: Server crash with loop
#6

ye that would be much better something like that.

PHP Code:
public Interp(){
    new 
maxplayers get_maxplayers();
    for(new 
id 1id <= maxplayersid++){
         if(
is_user_alive(id)){
                if(
agreed[id]  == true){
                     
client_cmd(id"ex_interp 0.01")
                     
client_print(id,print_chat,"Your ex_interp has been changed to 0.01")
                }
         }
    }
    return 
PLUGIN_HANDLED;

agreed is a bool array and in it you have to put the result of the question

Last edited by Pattinho; 05-10-2012 at 09:09.
Pattinho 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 00:22.


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