Thread: compare
View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-25-2022 , 07:24   Re: compare
Reply With Quote #3

Quote:
Originally Posted by Supremache View Post
This is not an answer to your question but I see you're doing something wrong while create the loop

PHP Code:
// The loop should not start from zero because it is an unkown number make 'i = 1' or remove '=' 
pickSiteByIndex(selected)
{
    for(new 
i<= g_iMaxPossibleIndexByEnti++)
    {
        if(
!= selected)
        {
            
removeSiteByIndex(ifalse)
        }
    }

No its not, first item index in an array is zero, zero is always the first id of a cell. ( Memory address + index )

Now for an answer for the TOPIC, its very obvious the first method is the best for the least CPU usage.

Also show the function where you increment this variable g_iMaxPossibleIndexByEnt
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-25-2022 at 07:27.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh