Thread: [Solved] What si better
View Single Post
Mitchell
~lick~
Join Date: Mar 2010
Old 12-27-2016 , 11:25   Re: What si better
Reply With Quote #10

Quote:
Originally Posted by sahapro33 View Post
Lol ;D
PHP Code:
public void OnPluginStart()
{
    
bool variable true;
    
PrintToServer((variable == true? (variable == true? (variable == true?"True":"False"):"False"):"False"));

==
PHP Code:
public void:OnPluginStart()
{
    new 
bool:variable 1;
    new 
var3;
    if (
variable == true)
    {
        new 
var2;
        if (
variable == true)
        {
            new 
var1;
            if (
variable == true)
            {
                
var1 2268;
            }
            else
            {
                
var1 2276;
            }
            
var2 var1;
        }
        else
        {
            
var2 2284;
        }
        
var3[0] = var2;
    }
    else
    {
        
var3[0] = 2292;
    }
    
PrintToServer(var3);
    return 
void:0;

I'd prefer if you're going to publicly display the code you atleast make it readable, making it one line can make the code look messy. I would rather see the second of expanding statements.
Mitchell is offline