Raised This Month: $ Target: $400
 0% 

Set Stock or Bool


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MrPickles
Senior Member
Join Date: Aug 2022
Location: Colombia
Old 10-06-2022 , 21:32   Set Stock or Bool
Reply With Quote #1

What is better in this case?

Option 1:

PHP Code:

public SpawnEffectsid )
{
         
CreateExplosionid );
         
CreateWaveid );
}
stock CreateExplosionid )
{
        
// Effect
}
stock CreateWaveid )
{
        
// Effect

or Option 2:

PHP Code:
public SpawnEffectsid )
{
         
CreateExplosionidtrue );
}
stock CreateExplosionidbool:Wave )
{
        
// Effect

       
if(Wave)
       {
            
// Create Wave
       
}

what is faster?

Last edited by MrPickles; 10-06-2022 at 21:32.
MrPickles 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 15:38.


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