Thread: [Solved] loop entitys
View Single Post
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 11-16-2022 , 22:40   Re: loop entitys
Reply With Quote #22

you are misunderstanding how For-loop actually work
what you did it still go through 100 loop without doing anything unless it reach the "value" in the array, it still take memories while doing so and take time to go though 100

Your code translate something like this
PHP Code:
        for( new 0100i++)
        { 
            if(
== || == || == 15 || == 100)
                    
client_printClientprint_chat"The Cell [%d] have a value of  = %d"i__int_Entitys[i] );          
        }
        
client_printClientprint_chat"End of the Loop" ); 
Of course, this is not what you wrote but it is actually how it run
__________________
My plugin:

Last edited by Celena Luna; 11-16-2022 at 22:47.
Celena Luna is offline