Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • What indentation style do you prefer?


    RetroBot

    Indentation Style  

    7 members have voted

    1. 1. Indentation style



    Recommended Posts

    • 7 months later...

    4 space tabs, the default 2 is too close.

    private static void Loop()
    {
        while (IsTokenAlive())
        {
            if (!MainWindow.NetworkManager.IsHeartBeating())
            {
                MainWindow.Shutdown();
                break;
            }
    
            if (MainWindow.LoginDialog is null
                || MainWindow.LoginDialog.Username is null
                || MainWindow.LoginDialog.Password is null)
            {
                MainWindow.Shutdown();
                break;
            }
    
            Thread.Sleep(1000);
        }
    }

     

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.